java jps -q_查看java进程信息--jps命令详解

格式[root@dmp002 ~]# jps -hillegal argument: -husage: jps [-help]       jps [-q] [-mlvV] []Definitions:    :      [:]

主要参数解释:选项作用-q只输出LVMID,省略主类的名称

-m输出启动时,传给main()函数的参数

-l输出主类全类名

-v输出jvm参数

常用

输出主类及main()函数的参数root@SSP002:[/root]jps -l -m4768 org.apache.flume.node.Application -f ./win/win.conf -n win31362 izone-msg-sender-0.0.3-PRODUCT.jar10787 org.apache.catalina.startup.Bootstrap start23875 com.tfp.report-1.1.3.jar10731 org.apache.catalina.startup.Bootstrap start27307 org.apache.catalina.startup.Bootstrap start23436 org.apache.zookeeper.server.quorum.QuorumPeerMain config/zookeeper.properties29327 kafka.Kafka config/server.properties28017 org.apache.catalina.startup.Bootstrap start8273 sun.tools.jps.Jps -l -m4754 org.apache.flume.node.Application -f ./click/click.conf -n click4756 org.apache.flume.node.Application -f ./download/download.conf -n download4758 org.apache.flume.node.Application -f ./forward/forward.conf -n forward27447 org.apache.catalina.startup.Bootstrap start4760 org.apache.flume.node.Application -f ./imp/imp.conf -n imp23641 izone-0.0.2-PRODUCT.jar4762 org.apache.flume.node.Application -f ./install/install.conf -n install24155 org.apache.catalina.startup.Bootstrap start27579 org.apache.catalina.startup.Bootstrap start4764 org.apache.flume.node.Application -f ./request/request.conf -n request

输出主类及jvm参数root@SSP002:[/root]jps -l -v8352 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 -Xms8m4768 org.apache.flume.node.Application -Xmx20m -Dflume.log.dir=./win/logs/ -Xms512m -Xmx1024m -Djava.library.path=31362 izone-msg-sender-0.0.3-PRODUCT.jar10787 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=1100323875 com.tfp.report-1.1.3.jar10731 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=1101627307 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=1100923436 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.properties29327 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值