Java Mission Control

Since Java 7u40, the JDK has included the Java Flight Recorder tool. If you remember the available commands in jcmd, you had some JFR.* options, which are directly related to this tool. It allows you to capture a set of JVM events. It is coupled with Java Mission Control (JMC), which enables you to analyze and exploit the JVM events.

Launching it is easy:

$ $JAVA_HOME/bin/jmc

Once it is launched, you'll get a welcome screen; the view looks similar to the jvisualvm view, with a list of the available processes on the left-hand side:

You can use the same kind of hints as for jvisualvm to identify the process. If you are not ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.