1848480 Members
8578 Online
104029 Solutions
New Discussion

Re: process report

 
arun m govind
Frequent Advisor

process report

hi

i want to save the details of a process (%cpu,%memory, etc..)in a file .how can i do taht
2 REPLIES 2
Arunvijai_4
Honored Contributor

Re: process report

Hi Arun,

Check this page : ftp://eh:spear9@hprc.external.hp.com/memory.htm


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
twang
Honored Contributor

Re: process report

Yes, take a look at above link,
and you may use the following code to find out the top memory users and pid
#!/bin/sh
# VSZ is in KB
echo "VSZ(KB) PID RUSER COMMAND"
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30