JPS (JVM Process Status Tool)
The JPS tool lists the running virtual machine processes, and displays the virtual machine execution main class name and the local virtual machine unique ID of those processes (locally vsan identifier,lvmid).
JPS command format:
jps [ options ] [ hostid ]
HostID host name registered in the RMI registry
Option:
Options |
function |
-Q |
Output Lvmid only |
-L |
Output the full name of the main class |
-M |
Output virtual machine process boot number passed to the main () function parameter |
-V |
JVM parameters when the output virtual machine process starts |
JPS Implementation Examples:
Jps-q
~ jps -q28322306
Jps-l
~ jps -l3492 com.intellij.rt.execution.application.AppMain3483 org.apache.zookeeper.server.quorum.QuorumPeerMain
Jps-m
~ jps -m3492 AppMain com.alibaba.dubbo.demo.provider.Provider3483 QuorumPeerMain /Users/wolf/usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
JPS Virtual machine Process Status Tool