This page provides information about JMC installations on Fedora. (See also Java.)
This page will discuss JDK Mission Control (JMC) and how to install and run it on Fedora.
What is JMC
JDK Mission Control is a powerful profiling application for HotSpot JVMs and has an advanced set of tools that enables efficient and detailed analysis of the extensive data collected by Flight Recorder (JFR). JMC requires JDK 8 or later.
JFR is part of the JVM, and is available in OpenJDK 11 or Oracle JDK 7u4 or later. Therefore to generate a flight recording to be loaded into JMC for analysis, the target application needs to run on OpenJDK 11 or OracleJDK 7u4 or later.
JMC is available as a module on Fedora 29+. There are currently two streams. 'latest' tracks the latest commit in upstream jmc/jmc and is updated quarterly. '7' tracks the 7.x stable release commit in jmc/jmc7.
Install the 'latest' stream via:
sudo dnf module install jmc:latest/default
Or, install the '7' stream via:
sudo dnf module install jmc:7/default
To switch between streams, first reset the module via:
sudo dnf module reset jmc
Run JMC using the default system JDK via:
Run JMC using a specific JDK via:
$ jmc -vm /path/to/jdk/bin
For example, OpenJDK 11 is available on Fedora 29 and later through the package ‘java-11-openjdk. Install via:
$ sudo dnf install java-11-openjdk
Now we can run JMC with OpenJDK 11 via:
$ jmc -vm /usr/lib/jvm/jre-11-openjdk/bin