This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17057|Reply: 0

[Source] JPS common commands are organized

[Copy link]
Posted on 3/19/2018 10:26:28 PM | | | |
JDK 1.5 (Java Virtual Machine Process Status Tool) is a command provided by JDK 1.5 that displays the PID of all current Java processes, which is simple and practical, and is very suitable for simply checking the current Java JVM process on Linux/Unix platform.



1. jps

List the pid and java master class names

2017 Bootstrap
2576 Jps


2. jps -l

List the full names of PID and Java main classes

2017 org.apache.catalina.startup.Bootstrap
2612 sun.tools.jps.Jps


3. jps -lm

Lists the belt, the full name of the main class, and the application parameters

2017 org.apache.catalina.startup.Bootstrap start
2588 sun.tools.jps.Jps -lm


4. jps -v

List pid and JVM parameters

2017 Bootstrap -Djava.util.logging.config.file=/usr/local/tomcat-web/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Dfile.encoding=UTF-8 -Xms256m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -verbose:gc -Xloggc:/usr/local/tomcat-web/logs/gc.log-2014-02-07 -XX:+UseConcMarkSweepGC -XX:+ PrintGCDetails -XX:+PrintGCTimeStamps -Xnoclassgc -Djava.endorsed.dirs=/usr/local/tomcat-web/endorsed -Dcatalina.base=/usr/local/tomcat-web -Dcatalina.home=/usr/local/ tomcat-web -Djava.io.tmpdir=/usr/local/tomcat-web/temp
2624 Jps -Dapplication.home=/usr/lib/jvm/jdk1.6.0_43 -Xms8m





Previous:Error when starting zookeeper JAVA_HOME is not set
Next:【Practical Combat】Zookeeper installation tutorial in Windows environment
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com