格式
[[email protected] ~]# jps -h
illegal argument: -h
usage: jps [-help]
jps [-q] [-mlvV] [<hostid>]
Definitions:
<hostid>: <hostname>[:<port>]
主要参数解释:
选项 | 作用 |
---|---|
-q | 只输出LVMID,省略主类的名称 |
-m | 输出启动时,传给main()函数的参数 |
-l | 输出主类全类名 |
-v | 输出jvm参数 |
常用
输出主类及main()函数的参数
[email protected]:[/root]jps -l -m
4768 org.apache.flume.node.Application -f ./win/win.conf -n win
31362 izone-msg-sender-0.0.3-PRODUCT.jar
10787 org.apache.catalina.startup.Bootstrap start
23875 com.tfp.report-1.1.3.jar
10731 org.apache.catalina.startup.Bootstrap start
27307 org.apache.catalina.startup.Bootstrap start
23436 org.apache.zookeeper.server.quorum.QuorumPeerMain config/zookeeper.properties
29327 kafka.Kafka config/server.properties
28017 org.apache.catalina.startup.Bootstrap start
8273 sun.tools.jps.Jps -l -m
4754 org.apache.flume.node.Application -f ./click/click.conf -n click
4756 org.apache.flume.node.Application -f ./download/download.conf -n download
4758 org.apache.flume.node.Application -f ./forward/forward.conf -n forward
27447 org.apache.catalina.startup.Bootstrap start
4760 org.apache.flume.node.Application -f ./imp/imp.conf -n imp
23641 izone-0.0.2-PRODUCT.jar
4762 org.apache.flume.node.Application -f ./install/install.conf -n install
24155 org.apache.catalina.startup.Bootstrap start
27579 org.apache.catalina.startup.Bootstrap start
4764 org.apache.flume.node.Application -f ./request/request.conf -n request
输出主类及jvm参数
[email protected]:[/root]jps -l -v
8352 sun.tools.jps.Jps -Denv.class.path=/usr/java/jdk1.8.0_91/lib/tools.jar:/usr/java/jdk1.8.0_91/lib/dt.jar: -Dapplication.home=/usr/java/jdk1.8.0_91 -Xms8m
4768 org.apache.flume.node.Application -Xmx20m -Dflume.log.dir=./win/logs/ -Xms512m -Xmx1024m -Djava.library.path=
31362 izone-msg-sender-0.0.3-PRODUCT.jar
10787 org.apache.catalina.startup.Bootstrap -Djava.util.logging.config.file=/data/tfp/tomcat-demo-11003/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:PermSize=64M -XX:MaxPermSize=500m -Xms1024m -Xmx10000m -Duser.timezone=Asia/Shanghai -Djava.endorsed.dirs=/data/tfp/tomcat-demo-11003/endorsed -Dcatalina.base=/data/tfp/tomcat-demo-11003 -Dcatalina.home=/data/tfp/tomcat-demo-11003 -Djava.io.tmpdir=/data/tfp/tomcat-demo-11003/temp -Dlog4jPath=/data/ssp3/log2 -Dlog4jIndex=11003
23875 com.tfp.report-1.1.3.jar
10731 org.apache.catalina.startup.Bootstrap -Djava.util.logging.config.file=/data/tfp/tomcat-demo-11016/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:PermSize=64M -XX:MaxPermSize=500m -Xms1024m -Xmx10000m -Duser.timezone=Asia/Shanghai -Djava.endorsed.dirs=/data/tfp/tomcat-demo-11016/endorsed -Dcatalina.base=/data/tfp/tomcat-demo-11016 -Dcatalina.home=/data/tfp/tomcat-demo-11016 -Djava.io.tmpdir=/data/tfp/tomcat-demo-11016/temp -Dlog4jPath=/data/ssp3/log2 -Dlog4jIndex=11016
27307 org.apache.catalina.startup.Bootstrap -Djava.util.logging.config.file=/data/tfp/tomcat-tfp-11009/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:PermSize=64M -XX:MaxPermSize=500m -Xms1024m -Xmx10000m -Duser.timezone=Asia/Shanghai -Djava.endorsed.dirs=/data/tfp/tomcat-tfp-11009/endorsed -Dcatalina.base=/data/tfp/tomcat-tfp-11009 -Dcatalina.home=/data/tfp/tomcat-tfp-11009 -Djava.io.tmpdir=/data/tfp/tomcat-tfp-11009/temp -Dlog4jPath=/data/ssp3/logs -Dlog4jIndex=11009
23436 org.apache.zookeeper.server.quorum.QuorumPeerMain -Xmx512M -Xms512M -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC -Djava.awt.headless=true -Xloggc:/data/kafka_2.12-0.10.2.0/bin/../logs/zookeeper-gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dkafka.logs.dir=/data/kafka_2.12-0.10.2.0/bin/../logs -Dlog4j.configuration=file:bin/../config/log4j.properties
29327 kafka.Kafka -Xmx1G -Xms1G -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC -Djava.awt.headless=true -Xloggc:/data/kafka_2.12-0.10.2.0/bin/../logs/kafkaServer-gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dkafka.logs.dir=/data/kafka_2.12-0.10.2.0/bin/../logs -Dlog4j.configuration=file:bin/../config/log4j.properties
原文地址:http://blog.51cto.com/4436396/2072303
时间: 2024-10-02 03:46:54