jdk.jcmd/sun.tools.jps.Jps - "jps" Command


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

✍: FYIcenter


"jps" command allows you to list all JVM processes running on your computer.

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

You can run the "jps" 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.jcmd/sun.tools.jps.Jps --help

usage: jps [--help]
       jps [-q] [-mlvV] [<hostid>]

    <hostid>:      <hostname>[:<port>]
    -? -h --help -help: Print this help message and exit.


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

⇐ jdk.jcmd/sun.tools.jmap.JMap - "jmap" Command

⇑ Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-09-16, 1135👍, 0💬