PS viewing process, common usage has ps -ef | grep xxxx Viewing a process with xxxx strings (if xxxx is a command in the command, and this command is very long, XXXX is in the end, this program can't be found, look down UCB PS) Example: zhanju: / Home / Zhanju $ PS - EF | GREP WAS ORACLE 18112 1 0 Sep 23? 0:00 ORA_S000_WAS ORACLE 18114 1 0 Sep 23? 0:00 ORA_D000_WAS ORACLE 15886 1 0 OCT 25? 0: 05 ORACLEWAS (deSPription = (local = NO)) Oracle 18098 1 0 Sep 23? 0:13 ORA_DBW0_WAS WAS 1509 10844 0 OCT 22? 7:26 / Opt / WebSphere4 / Appserver / Java / JRE / bin /../ bin / sparc / native_threads / java -server WAS 17147 10844 0 OCT 25? 4:42 /opt/websphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java - Server Oracle 29411 1 0 18:21:09? 0:00 Oraclewas (Description = (local = no)) Oracle 5510 1 0 14:43:10? 1:25 Oraclewas (Description = (Local = no) (address = (protocol =
BEQ)) Oracle 18104 1 0 Sep 23? 0:19 ora_smon_was oracle 18096 1 0 Sep 23? 0:00 ora_pmon_was zhanju 20586 19391 0 02:28:52 PTS / 16 0:00 GREP WAS WAS 10844 29400 0 OCT 22? 172: 28 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -xmx128 WAS 10990 10844 0 OCT 27? 2:34 / Opt / WebSphere4 / AppserVer / Java / JRE / BIN /../bin/sparc/native_threads/java -server WAS 9507 1 0 OCT 22? 56:07 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server Oracle 18110 1 0 Sep 23? 0:01 ora_snp1_was WAS 8809 10844 0 15:10:51? 2:55 /opt/websphere4/Appserver/java/jre/bin/../bin/sparc/native_threads/java -server WAS 10987 10844 0 OCT 22? 1:04 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server Oracle 18100 1 0 Sep 23? 2:33 ORA_LGWR_WAS ORACLE 18102 1 0 SEP 23? 9:41 ORA_CKPT_WAS WAS 1969 2 10844 0 16:48:54? 1:44 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server WAS 6123 10844 0 14:48:44? 1:53 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server Oracle 18108 1 0 Sep 23? 0:01 ora_Snp0_was WAS 29395 1 0 OCT 15? 0:00 / bin / ksh /opt/websphere4/appserver/bin/startupser.sh 4001 Oracle 18106 1 0 Sep 23? 0:00 ORA_RECO_WAS WAS 9079 10844 0 OCT 27? 19:08 /opt/websphere4/appserver/java/jre/bin/../ BIN / SPARC / NATIVE_THREADS / JAVA-Server Was 28957 10844 0 18:17:04? 1:49 /opt/websphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java -server WAS 20841 10844 0 OCT 25?
2:50 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server WAS 29400 29395 0 OCT 15? 0:07 / Opt / WebSphere4 / Appserver / Java / JRE / BIN /../bin/sparc/native_threads/java -classp WAS 503 10844 0 13:58:37? 0:31 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java - Server WAS 8631 10844 0 15:09:46? 1:57 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -server oracle 14079 1 0 15:58:19? 0 : 01 Oraclewas (description = (local = no) (address = (protocol = beq))) WAS 17080 10844 0 OCT 25? 22:12 /opt/websphere4/appserver/java/jre/bin/../bin/sparc / native_threads / java -server WAS 2211 10844 0 OCT 27? 71:45 /opt/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java -serverzhanju: / Home / Zhanju $ PS-EO PID, User, Comm, PCPU, PMEM View some of the specified process properties, the later is attribute, please see the Manual Page Example: zhanju:
/ home / zhanju $ PS-EO PID, User, Comm, PCPU,
pmem | grep was18112 oracle ora_s000_was 0.0 1.618114 oracle ora_d000_was 0.0 1.615886 oracle oraclewas 0.0 1.618098 oracle ora_dbw0_was 0.0 1.6 1509 was /opt/WebSphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java 0.0 3.117147 was / opt /Websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.0 2.229411 Oracle Oraclewas 0.0 1.6 5510 Oracle Oraclewas 0.0 1.618104 Oracle ORA_SMON_WAS 0.0 1.618096 Oracle ORA_PMON_WAS 0.0 1.610844 WAS /OPT/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.0 3.510990 WAS /OPT/Websphere4/AppServer/Java/jre/bin/../bin/sparc/native_threads / java 0.0 1.6 9507 was /opt/WebSphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java 0.0 23.318110 oracle ora_snp1_was 0.0 1.6 8809 was / opt / webSphere4 / AppServer / java / jre / bin / ../bin/sparc/native_threads/java 0.0 4.910987 WAS /OPT/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.0 1.318100 Oracle ORA_LGWR_WAS
0.0 1.618102 Oracle ORA_CKPT_WAS 0.0 1.619692 WAS /OPT/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.0 2.8 6123 WAS /OPT/Websphere4/AppServer/java/jre/bin/../ bin / sparc / native_threads / java 0.0 2.318108 oracle ora_snp0_was 0.0 1.729395 was / bin / ksh 0.0 0.118106 oracle ora_reco_was 0.0 1.6 9079 was /opt/WebSphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java 0.1 4.428957 WAS /OPT/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.0 2.420841 WAS /OPT/Websphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/ Java 0.0 2.429400 WAS / OPT / WebSphere4 / AppServer / Java / J Re / bin /../ bin / sparc / native_threads / java 0.0 0.6 503 WAS /OPT/Websphere4/AppServer/Java/jre/bin/../bin/sparc/native_threads/java 0.0 1.5 8631 WAS / OPT / WebSphere4 / Appserver / java / jre / bin /../ bin / sparc / native_threads / java 0.0 1.814079 Oracle Oraclewas 0.0 1.617080 WAS /OPT/Websphere4/AppServer/java/jre/bin/../bin/sparc/native_threads/java 0.1 3.8 2211 WAS /OPT/websphere4/appserver/java/jre/bin/../bin/sparc/native_threads/java 0.5 3.4zhanju: / home / zhanju $ ucb ps This command and / bin / ps are different, with it Can see the full process command line, usage is / usr / ucb / ps -alxww example: zhanju: / home / zhanju $
/ usr / ucb / ps -alxww | grep httpd 8 0 997 1 0 59 2011528 8712 MUTEX_EX S? 0:03 / OPT / IBMHTPD / BIN / HTTPD 8 60001 1147 997 0 59 2012120 7016 MUTEX_EX S? 0:33 / OPT / IBMHTPD / BIN / HTTPD 8 60001 1148 997 0 59 2012128 6992 MUTEX_EX S? 0:32 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 1149 997 0 59 2012128 7224 MUTEX_EX S? 0:32 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 1150 997 0 59 2012128 6944 MUTEX_EX S? 0:32 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 1151 997 0 59 2012120 6232 MUTEX_EX S? 0:32 / OPT / IBMHTTPD / BIN / httpd 8 60001 3130 997 0 59 2012120 6280 MUTEX_EX S? 0:33 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 3656 997 0 60 2012096 6968 MUTEX_EX S? 0:32 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 7240 997 0 59 2012128 6256 udp_g_lo s? 0: 32 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 7241 997 0 59 2012144 6440 MUTEX_EX S? 0:31 / OPT / IBMHTTPD / BIN / HTTPD 8 60001 20113 997 0 59 2012176 7264 MUTEX_EX S? 0:32 / O PT / IBMHTTPD / BIN / HTTPD 8 39650 20935 19391 0 59 20 1032 784 MUTEX_EX S PTS / 16 0:00 GREP HTTPDZHANJU: / Home / Zhanju $ PRSTAT to see the current system process commonly: PID UserName Size RSS State Pro Nice Time CPU Process / NLWP 2211 WAS 277M 196M SLEEP 59 0 1: 11.50 0.2% Java / 27 9079 WAS 406M 257M Sleep 59 0 0 0: 19.09 0.1% Java / 25 17080 WAS 292M 220M Sleep 59 0 0: 22.12 0.0% Java / 27 10844 WAS 279M 206M SLEEP 59 0 2: 52.27 0.0% Java / 115 20841 WAS 160M 137M Sleep 59 0 0: 02.50 0.0% Java / 23 6123 WAS 280M 132M Sleep 59 0 0: 01.53 0.0% Java / 21 17147 WAS 265M 129M Sleep 59 0 0: 04.41 0.0% Java / 39 8631 WAS 255M 106M Sleep 59 0 0:01