There was a problem with the high response time of my Spring application.
My colleagues advised me to use VisualVM, simultaneously running the load using Jmeter. I want to check which method takes the most time
However, in VisualVM I get an uninformative answer - there are no methods of my application.
Can you tell me if I'm going the right way and how to display information on methods inside the application?
CodePudding user response:
I think you need to go for a more comprehensive tool like JProfiler or YourKit or an APM tool if you have an appropriate license (there are free and open source like Apache Skywalking as well)
Theoretically it's possible to use JVisualVM however it's better to go for the "snapshot" mode, check out Profiling With VisualVM article series for instructions.
You can also get some JMX metrics using JMeter's PerfMon Plugin