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.

You can run the "jps" command using the lib\modules JImage file as described below:

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, 1438🔥, 0💬