2 Minutes To Code (β Version)

JVisualVM - 2 minute tutorial

Sampler Tab of jvisualvm

The Sampler tab will be present only if you install the VisualVM-Sampler plugin.

Here, you get options to profile CPU or memory. CPU profiling will calcaulate the absolute amount of time and percentage of time spent by CPU in various methods. Memory profiling will display the count of instances and memory consumed by these.