- Run application with java version1.7.0_40 or higher
- Start application with flags -XX:+UnlockCommertialFeatures -XX:+FlightRecorder
Worth watching: http://www.youtube.com/watch?v=WMEpRUgp9Y4
Worth watching: http://www.youtube.com/watch?v=WMEpRUgp9Y4
jps -v - lists java processes
jcmd - runs command on the jvm
Some examples:
jstat - prints jvm statistics
jvisualvm - graphical tool monitoring jvm processes. We can see CPU, Thread, Heap usage. It allows comparing Heap Dumps, inspecting all objects and references to them. We can use Sampler and Profiler to check where most of the time is spent and where object are mostly allocated.
jstack -F pid - suspends process in unknown state