1. jsp
显示当前所有java进程pid
$ jps
27689 jar
14781 jar
27678 Jps
$ jps -l # 输出应用程序main class的完整package名或者应用程序的jar文件完整路径名
27655 sun.tools.jps.Jps
27689 baqisCloud-0.0.1-SNAPSHOT.jar
14781 baqisCloud-0.0.1-SNAPSHOT.jar
$ jps -v # 输出传递给JVM的参数
27689 jar -Djasypt.encryptor.password=bAq1sC1oud -Djava.library.path=/home/spinq/baqisCloud/simulator/build/uat -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:/home/spinq/baqisCloud/backend/logs/sit/java-gc/gc.log
27626 Jps -Dapplication.home=/usr/lib/jvm/java-8-openjdk-amd64 -Xms8m
14781 jar -Djasypt.encryptor.password=bAq1sC1oud -Djava.library.path=/home/spinq/baqisCloud/simulator/build/uat -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:/home/spinq/baqisCloud/backend/logs/uat/java-gc/gc.log
网友评论