1827075 Members
1420 Online
109713 Solutions
New Discussion

Re: ps

 
Chakravarthi
Trusted Contributor

ps

Hi all,

What is the command syntax of ps which give me memory and CPU utilization of processes,

I want it in a proper format, to include it in a script.

regards
chakri
3 REPLIES 3
Karthik S S
Honored Contributor

Re: ps

Hi

As far as I know ps wont show you the memory and CPU utilization. Try top instead.

Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
H.Merijn Brand (procura
Honored Contributor

Re: ps

# ps -fl

will show the most, but you can fine-tune with

# env UNIX95=1 ps -o....

see 'man ps'
Enjoy, Have FUN! H.Merijn
T G Manikandan
Honored Contributor

Re: ps

The best approach should be using glance for monitoring the utilization.

you can also use

for memory usage

#UNIX95= ps -e -o ruser,vsz=Kbytes|sort -nkr2|head -30

For processor usage

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