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

Q

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

✍: FYIcenter

A

"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>]

Definitions:
    <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, 1414🔥, 0💬