JVMPeg was designed based on a popular solution we have for making analysis in situations where JVM threads are consuming a significant amount of CPU: Java application high CPU. When the JVM is consuming a lot of CPU we need the ability to peak inside the thread activity to see what specific thread is a high consumer. We've developed scripts on the aforementioned solution that will capture jstack and top output that can be used in JVMPeg for analysis.
For a command line version of analysis see javahighcpu
- Download the appropriate high_cpu_*.tar.gz script from How do I identify high CPU utilization by Java threads on Linux/Solaris.
- Run the script per instructions on the solution.
- Drag and drop the resulting high-cpu.out and high-cpu-tdump.out onto the respective drop areas on the screen.
- Optionally select the CPU threshold (default 40%). This will determine at what percentage of CPU consumption to begin showing threads.