jdk.jconsole/sun.tools.jconsole.JConsole - "jconsole" Command


How to run "jconsole" command from JDK lib\modules JImage file?

✍: FYIcenter


"jconsole" command allows you to list all running JVM processes on your computer system and interact with them.

"jconsole" command is supported by the jmods\jdk.jconsole.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

You can run the "jconsole" command 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.jconsole/sun.tools.jconsole.JConsole

You see the "Java Monitoring & Management Console" screen.


⇒ jdk.jdeps/com.sun.tools.javap.Main - "javap" Command

⇐ jdk.jcmd/sun.tools.jstat.Jstat - "jstat" Command

⇑ Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2020-01-29, 869👍, 0💬