Liunx系统收集进程和线程状态信息

原创
2017/11/28 11:49
阅读数 126

linux下结合进程的状态和jstack命令输出进程和线程和线程状态信息。

[root@iZ23zw1ss97Z ~]# cat jstack-zjw.sh 
echo "执行时间:"`date +%Y-%m-%d\ %H:%M:%S` >> ./log-zjw-1.log
ps -ef|grep java |grep apache-tomcat-7.0.70 |awk '{print $2}' | xargs -I{} cat /proc/{}/status >> ./log-zjw-1.log 
ps -ef|grep java |grep apache-tomcat-7.0.70 |awk '{print $2}' | xargs -I{} jstack {} >> ./log-zjw-1.log

liunx下查看进程的线程数

[root@iZ23zw1ss97Z ~]# ps -ef|grep java
root      1507     1  0 Nov02 ?        01:29:37 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      3364     1  0 Nov22 ?        01:12:03 /app/jdk1.8.0_65/bin/java -Djava.util.logging.config.file=/app/qt-tomcat-8.0.39/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Djav.endorsed.dirs=/app/qt-tomcat-8.0.39/endorsed -classpath /app/qt-tomcat-8.0.39/bin/bootstrap.jar:/app/qt-tomcat-8.0.39/bin/tomcat-juli.jar -Dcatalina.base=/app/qt-tomcat-8.0.39 -Dcatalina.home=/app/qt-tomcat-8.0.39 -Djava.io.tmpdir=/app/qt-tomcat-8.0.39/temp org.apache.catalina.startup.Bootstrap start
root      9047  8918  0 11:37 pts/0    00:00:00 grep --color=auto java
[root@iZ23zw1ss97Z ~]# pstree -p 1507    #查看pid下的线程
java(1507)─┬─{java}(1508)
           ├─{java}(1509)
           ├─{java}(1510)
           ├─{java}(1511)
           ├─{java}(1512)
           ├─{java}(1513)
           ├─{java}(1514)
           ├─{java}(1515)
           ├─{java}(1516)
           ├─{java}(1517)
           ├─{java}(1518)
           ├─{java}(1519)
           ├─{java}(1524)
           ├─{java}(1526)
           ├─{java}(1527)
           ├─{java}(1537)
           ├─{java}(1538)
           ├─{java}(1539)
           ├─{java}(1540)
           ├─{java}(1541)
           ├─{java}(1676)
           ├─{java}(4548)
           ├─{java}(4552)
           ├─{java}(4553)
           ├─{java}(4554)
           ├─{java}(4555)
           ├─{java}(4556)
           ├─{java}(5639)
           ├─{java}(5725)
           ├─{java}(10867)
           ├─{java}(14909)
           ├─{java}(6532)
           ├─{java}(17734)
           ├─{java}(17736)
           ├─{java}(18369)
           ├─{java}(26313)
           ├─{java}(26341)
           ├─{java}(26342)
           ├─{java}(27865)
           ├─{java}(27866)
           └─{java}(3922)
[root@iZ23zw1ss97Z ~]#  top -Hp 1507    #加上选项top,一行显示一个线程。否则,它一行显示一个进程。
top - 11:40:48 up 25 days, 19:50,  1 user,  load average: 1.00, 1.01, 1.05
Threads:  42 total,   0 running,  42 sleeping,   0 stopped,   0 zombie
%Cpu(s): 50.9 us,  0.5 sy,  0.0 ni, 48.2 id,  0.2 wa,  0.0 hi,  0.0 si,  0.2 st
KiB Mem :  7748948 total,  4225712 free,  1368400 used,  2154836 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  6046448 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                                                                     
 1509 root      20   0 3357936 265400  11976 S  0.3  3.4   2:49.29 java                                                                                        
 1537 root      20   0 3357936 265400  11976 S  0.3  3.4  37:36.36 java                                                                                        
 1507 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.00 java                                                                                        
 1508 root      20   0 3357936 265400  11976 S  0.0  3.4   0:01.08 java                                                                                        
 1510 root      20   0 3357936 265400  11976 S  0.0  3.4   2:49.01 java                                                                                        
 1511 root      20   0 3357936 265400  11976 S  0.0  3.4   3:14.85 java                                                                                        
 1512 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.17 java                                                                                        
 1513 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.19 java                                                                                        
 1514 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.00 java                                                                                        
 1515 root      20   0 3357936 265400  11976 S  0.0  3.4   0:18.89 java                                                                                        
 1516 root      20   0 3357936 265400  11976 S  0.0  3.4   0:18.03 java                                                                                        
 1517 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.00 java                                                                                        
 1518 root      20   0 3357936 265400  11976 S  0.0  3.4  23:26.54 java                                                                                        
 1519 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.00 java                                                                                        
 1524 root      20   0 3357936 265400  11976 S  0.0  3.4  14:07.89 java                                                                                        
 1526 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.16 java                                                                                        
 1527 root      20   0 3357936 265400  11976 S  0.0  3.4   0:02.71 java                                                                                        
 1538 root      20   0 3357936 265400  11976 S  0.0  3.4   0:04.81 java                                                                                        
 1539 root      20   0 3357936 265400  11976 S  0.0  3.4   1:05.85 java                                                                                        
 1540 root      20   0 3357936 265400  11976 S  0.0  3.4   0:00.00 java                                                                                        
 1541 root      20   0 3357936 265400  11976 S  0.0  3.4   1:05.83 java                                                                                        
[root@iZ23zw1ss97Z ~]# ps -Lf 1507|wc
     43     935   25392
[root@iZ23zw1ss97Z ~]# ps -eLf |grep 1507|grep -v grep
root      1507     1  1507  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1508  0   42 Nov02 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1509  0   42 Nov02 ?        00:02:49 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1510  0   42 Nov02 ?        00:02:49 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1511  0   42 Nov02 ?        00:03:14 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1512  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1513  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1514  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1515  0   42 Nov02 ?        00:00:18 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1516  0   42 Nov02 ?        00:00:18 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1517  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1518  0   42 Nov02 ?        00:23:26 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1519  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1524  0   42 Nov02 ?        00:14:08 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1526  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1527  0   42 Nov02 ?        00:00:02 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1537  0   42 Nov02 ?        00:37:36 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1538  0   42 Nov02 ?        00:00:04 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1539  0   42 Nov02 ?        00:01:05 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1540  0   42 Nov02 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1541  0   42 Nov02 ?        00:01:05 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  1676  0   42 Nov02 ?        00:00:12 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4548  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4552  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4553  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4554  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4555  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  4556  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  5639  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  5725  0   42 Nov03 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 10867  0   42 Nov04 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 14909  0   42 Nov05 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  6532  0   42 Nov23 ?        00:00:02 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 17734  0   42 Nov25 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 17736  0   42 Nov25 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 18369  0   42 Nov25 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 26313  0   42 Nov26 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 26341  0   42 Nov26 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 26342  0   42 Nov26 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 27865  0   42 Nov26 ?        00:00:01 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1 27866  0   42 Nov26 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
root      1507     1  3922  0   42 Nov27 ?        00:00:00 /app/jdk1.7.0_79/bin/java -Djava.util.logging.config.file=/app/apache-tomcat-7.0.70/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/app/apache-tomcat-7.0.70/endorsed -classpath /app/apache-tomcat-7.0.70/bin/bootstrap.jar:/app/apache-tomcat-7.0.70/bin/tomcat-juli.jar -Dcatalina.base=/app/apache-tomcat-7.0.70 -Dcatalina.home=/app/apache-tomcat-7.0.70 -Djava.io.tmpdir=/app/apache-tomcat-7.0.70/temp org.apache.catalina.startup.Bootstrap start
[root@iZ23zw1ss97Z ~]# pstree -p `ps -aux | grep server | awk '{print $2}'` | wc -l
0
[root@iZ23zw1ss97Z ~]# 

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部