Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process resources consumption status

Status
Not open for further replies.

amarsafy

IS-IT--Management
Feb 17, 2003
15
EG
Hi,
Using the "ps aux" command does not reflect the actual resources consumed by a process, do I use wrong switches or is there any other commands to use?

ps aux sample:
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 774 46.4 0.0 12 8108 - A Apr 15 62712:37 kproc
root 516 46.1 0.0 12 8108 - A Apr 15 62239:27 kproc
serveng 37344 3.6 0.0 5908 932 - A May 13 1980:19 ./MessageServer
-
serveng 35726 0.4 0.0 19028 5392 - A May 13 226:31 ./nts_server -ap
p
serveng 39136 0.4 0.0 18096 5732 - A May 27 53:01 ./nts_server -app
 
Try the following that will show you the top 10 memory users by process:

ps auxw | sort –r +3 |head –10

Same by CPU usage:

ps auxw | sort –r +2 |head –10

"Long live king Moshiach !"
 
Why don't you try monitor or topas. Thease are excellent tools.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top