Help to trace process consuming more space

Hi all,

We have a server having much processes running. It is very difficuilt to trace the exact consuming more memory. Howerver, it shows CPU usage in sequence but how memory?

Tried working with TOP command.

Please let me know if something not clear.

Thanks,
Deepak

  1. Execute top.

  2. Press M to make the ordering by memory.

Note: Press upper case M when top shows you results.

check the help in top i.e. hit ? of h

specifically see the piece on sorting:

o       - specify sort order (size, res, cpu, time)

i.e. hit o, then enter what you wish to sort by.

HTH

(depending of course on which version/system you're running on....:slight_smile: )

are you running solaris or linux?

also, please search forums first before posting: Solaris Top Command

1 Processes ordered by cpu usage :

ps -eo pcpu,pmem,args | sort -k 1 �nr | more

2 Processes ordered by memory usage :

ps -eo pcpu,pmem,args | sort -k 2 -n

prstat -a -s rss