SUMMARY: Identify high cpu process w/o "top"

From: jhartzen@csc.com
Date: Wed Nov 08 2000 - 09:47:00 CST


THANK YOU to all the responses.

I did not think about the BSD style ps command in /usr/ucb/ps

about 50 replies suggested I use some variation of:

/usr/ucb/ps -auxgwwwr | head -15

Or some variation with fewer w's, missing some of the other options (the
aux is needed), using more in stead of head, and it seems the "-" before
the aux bit is optional.

The other very useful option is:

ps -efo pcpu,pid,args | sort -nr | head

Quite a few variations on this one as well.

Some people asked why not isntall top? The answer: This is on a strictly
Change Controll Managed Produciton system and I can not take chances with
my 99.999% uptime.

Lastly:

It seems solaris8 has got a built in tool, namely sdtprocess, and sun has
got an optional extra tool named prstat.

Thanx,
  _Johan

---------------------- Forwarded by Johannes J Hartzenberg/GIS/CSC on
08/11/2000 05:44 PM ---------------------------

Johan Hartzenberg/GIS/CSC
08/11/2000 04:09 PM

Sent by: Johannes J Hartzenberg/GIS/CSC

To: sun-managers@sunmanagers.ececs.uc.edu
cc:
Subject: Identify high cpu process w/o "top"

Hi,

How can I find out what process(es) are hogging my cpu without having "top"
installed?

Thanx,
  _Johan

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:21 CDT