JDK TOOLS-JPS:JVM Process Status Tool

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.