I have a Spring application that I believe has some bottlenecks, so I’d like to run it with a profiler to measure what functions take how much time. Any recommendations to how I should do that?
I’m running STS, the project is a maven project, and I’m running Spring 3.0.1
I’ve done this using Spring AOP.
Sometime I need an information about how much time does it take to execute some methods in my project (Controller’s method in example).
In servlet xml I put
Also, I need to create the class for aspects:
And profiler aspect:
That’s all.
When I request a page from my webapp, the information about method executing time and JVM memory usage prints out in my webapp’s log file.