I want to do profiling for the Java-11 Spring hibernate application especially measure the time taken by each method, hibernate queries.
I did tried profiling using intellj but the flame graph dint have time taken for each method. Visual VM plugin in the intellj couldn't measure the Java-11 application. So,
1.Any other methods recommended to follow?. 2.Is there any approach to calculate time taken by each method.
Share your thoughts.
I would recommend using JProfiler, which has specific support for Spring and Hibernate, see the screencast for profiling Spring applications and the screencast for profiling Hibernate. If you like flame graphs, JProfiler has them as well.
JProfiler 14 can profile all Java versions starting with Java 1.5 up to the current Java version.
Disclaimer: My company develops JProfiler