No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
` | ` | ||
sudo dnf module install jmc:7/default | sudo dnf module install jmc:7/default | ||
To switch between streams, first reset the module via: | |||
` | |||
sudo dnf module reset jmc | |||
` | |||
== Running JMC == | |||
` | ` | ||
Revision as of 14:04, 19 August 2019
Abstract
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.
Installing JMC
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
sudo dnf module reset jmc
`
To switch between streams, first reset the module via:
Running JMC
Run JMC using the default system JDK via:
$ jmc
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 `