jdk.jfr/jdk.jfr.internal.cmd.Execute - JFR Tool


How to run "jdk.jfr/jdk.jfr.internal.cmd.Execute" tool from JDK lib\modules JImage file?

✍: FYIcenter


"jdk.jfr/jdk.jfr.internal.cmd.Execute" tool allows you to run the Java Flight Recorder (JFR) tool for collecting diagnostic and profiling data about a running Java application.

"jdk.jfr/jdk.jfr.internal.cmd.Execute" tool is supported by the jmods\jdk.jfr.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

You can run the "jdk.jfr/jdk.jfr.internal.cmd.Execute" tool using the lib\modules JImage file as described below using JDK 11 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1

C:\fyicenter>%JDK_HOME%\bin\java --module jdk.jfr/jdk.jfr.internal.cmd.Execute

Usage: java jdk.jfr.internal.cmd.Execute <command> [<options>]

Available commands are:

  print [--xml|--json] <file>
    Print contents of a recording file (.jfr)

  summary <file>
    Display general information about a recording file (.jfr)

  reconstruct <repository> <file>
    Assemble leftover chunks, from a disk repository, into a recording file (.jfr)

  split [--maxchunks <chunks>] <file>
    Splits a recording file into smaller files

  help [<command>]
    Display help about a command


jdk.jlink/jdk.tools.jimage.Main - "jimage" Command

jdk.jdi/com.sun.tools.example.debug.tty.TTY - "jdb" Command

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-05-14, 199👍, 0💬