One of my component is taking too much time to execute. It calls lots of services which in turn calls many dao methods. Now, is there any way to get the time taken by each method it is calling.
I don’t want to write System.currentmillis before and after each method to calculate time taken as there are too many methods.
I think i may need to use interceptors or may be any profiler can do that. I am not sure, please help.
One of my component is taking too much time to execute. It calls lots
Share
Use
jvisualvmwhich should come with JDK (if I remember correctly). It’s a GUI for your JVM, and has really nice functions. Check out its features there are some screenshots as well…And you can follow these steps to integrate it as launcher in eclipse
Steps to integrate in eclipse