The JPS (Java Virtual machine Process Status Tool) is a command that the JDK provides to display all instances of the current Java process.
Command format
JPS [Options] [HostID]
Command parameters
-Q
Only the PID of the local virtual machine is displayed, not the class name, the JAR file name, and the arguments passed to the main method.
-M
The output is passed to the main method's parameters. On an embedded JVM, this output may be null.
-L
The full package name of the output application main class or the full path name of the application JAR file.
-V
Outputs the parameters passed to the JVM.
-V
Outputs the parameters passed to the JVM through the flags file.
-joption
Pass parameters to the Java initiator called by JPS. For example-j-xms48m set boot memory to 48M.
Instance
A) a display of all current Java process instances
JPS2702 Jps2548 run.jar2684 Bootstrap
b) Output the parameters passed to the main method
jps-m2548 run.jar start2909 jps-m2684 Bootstrap start
c) The full package name of the output application main class or the full path name of the application JAR file
jps-l2548/home/huey/huey/java/activemq/apache-activemq-5.5.1/bin/run.jar2978 sun.tools.jps.Jps2684 Org.apache.catalina.startup.Bootstrap
d) Output parameters passed to the JVM
[Email protected]:~$jps-v2991 jps-denv.class.path=.:/ Usr/lib/jvm/java-7-sun/lib:/usr/lib/jvm/java-7-sun/jre/lib-dapplication.home=/usr/lib/jvm/java-6-openjdk-i386- xms8m2548 Run.jar-xms256m-xmx256m-dorg.apache.activemq.usededicatedtaskrunner=true- Djava.util.logging.config.file=logging.properties-dcom.sun.management.jmxremote-dactivemq.classpath=/home/huey /huey/java/activemq/apache-activemq-5.5.1/conf; -dactivemq.home=/home/huey/huey/java/activemq/apache-activemq-5.5.1-dactivemq.base=/home/huey/huey/java/ activemq/apache-activemq-5.5.12684 bootstrap-djava.util.logging.config.file=/home/huey/huey/java/tomcat/ Apache-tomcat-6.0.43/conf/logging.properties-djava.util.logging.manager=org.apache.juli.classloaderlogmanager- djava.endorsed.dirs=/home/huey/huey/java/tomcat/apache-tomcat-6.0.43/endorsed-dcatalina.base=/home/huey/huey/ java/tomcat/apache-tomcat-6.0.43-dcatalina.home=/home/huey/huey/java/tomcat/apache-tomcat-6.0.43- Djava.io.tmpdir=/home/huey/huey/java/tomcat/apache-tomcat-6.0.43/temp
JDK TOOLS-JPS:JVM Process Status Tool