UnixPedia : HPUX / LINUX / SOLARIS: HPUX : CPU and Memory usage check

Sunday, August 18, 2013

HPUX : CPU and Memory usage check

Below command is to check the top 10 Ten process consuming high CPU

#->echo " %CPU PID RUSER COMMAND" ;UNIX95= ps -ef -o 'pcpu pid ruser args'|sort -nr|head -10

#-> echo " %CPU PID RUSER COMMAND" ;UNIX95= ps -ef -o 'pcpu pid ruser args'|sort -nr|head -10
 %CPU PID RUSER COMMAND
99.57 18203 root     /usr/openv/java/jre/bin/PA_RISC2.0/java -cp /usr/openv/netbacku
 0.77  3997 root     /usr/sbin/adclient -F -M
 0.60 14063 root     /opt/APPQcime/jre/bin/PA_RISC2.0/java -Dprogram.name=../tools/s
 0.55 28811 cimsrvr  cimservermain --executor-socket 5
 0.51 16140 root     /usr/lbin/utild
 0.42 23549 root     /opt/OV/bin/ovcd
 0.35    37 root     vxfsd
 0.29 23612 root     /opt/OV/lbin/eaagt/opcmsga
 0.25 15042 hpsmh    /opt/hpws/apache/bin/httpd -k start -DSSL -f /opt/hpsmh/conf/sm
 0.23 23616 root     /opt/OV/lbin/eaagt/opcacta


Below command is to check the top 10 Ten process consuming high Memory


#-> echo " SZ PID RUSER COMMAND";UNIX95= ps -ef -o 'sz pid ruser args' |sort -nr|head -10

#-> UNIX95= ps -ef -o 'pcpu sz pid ruser stime state pset args'|sort -nr|head -10
100.06 2061 18203 root      Jun 22  R        - /usr/openv/java/jre/bin/PA_RISC2.0/java -cp /usr/openv/netbacku
 1.05  550  3997 root      Jul 20  R        - /usr/sbin/adclient -F -M
 0.61 29964 14063 root      Nov  1  R        - /opt/APPQcime/jre/bin/PA_RISC2.0/java -Dprogram.name=../tools/s
 0.46 1548 23549 root      Aug 27  R        - /opt/OV/bin/ovcd
 0.43  720 16140 root      Aug 25  S        - /usr/lbin/utild
 0.37 1652 28811 cimsrvr  04:52:02 R        - cimservermain --executor-socket 5
 0.35    0    37 root      Aug 25  R        - vxfsd
 0.25 1251 15042 hpsmh    01:43:15 R        - /opt/hpws/apache/bin/httpd -k start -DSSL -f /opt/hpsmh/conf/sm
 0.21  941 25846 root      Jul 26  R        - /opt/OV/lbin/eaagt/opcmona
 0.21  618 23616 root      Aug 27  R        - /opt/OV/lbin/eaagt/opcacta

1 comment: