Operating System - HP-UX
1830898 Members
2214 Online
110017 Solutions
New Discussion

Re: CPU hoggers (easy points)

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

CPU hoggers (easy points)

similar to the top output, is there a ps/equivalent option that produces a list of top CPU eating processes like the script in the follwing thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0f2f5bd3782dd711abdc0090277a778c,00.html
that produces memory hoggers.

Thanks,
Bill
It works for me (tm)
4 REPLIES 4
Christian Gebhardt
Honored Contributor

Re: CPU hoggers (easy points)

Hi

# export UNIX95=""
# ps -efao pcpu,comm | sort -n -r | head -10

We have some HPUX11 with old patch level on which this command doesn't work, but I don't know what Patches we need, on 11i it works fine.

Chris
Robert-Jan Goossens
Honored Contributor

Re: CPU hoggers (easy points)

T G Manikandan
Honored Contributor

Re: CPU hoggers (easy points)

#UNIX95= ps -e -o ruser,pcpu,comm|sort -nkr2|head -10


Thanks
Stefan Farrelly
Honored Contributor
Solution

Re: CPU hoggers (easy points)

UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o args |sort -r -k 3|more
Im from Palmerston North, New Zealand, but somehow ended up in London...