LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   To find the process that uses the most memory using top (http://www.linuxquestions.org/questions/linux-server-73/to-find-the-process-that-uses-the-most-memory-using-top-648294/)

nano2 06-10-2008 10:21 AM

To find the process that uses the most memory using top
 
Hi ,

I am looking for the equivalent top command on linux to achieve the result
I have used this on sun

top -i ${PWD}/top.out -n 10000 -s 10 -d 1000000

however the above won't work on linux ??

Thanks

sfjoe 06-10-2008 11:17 AM

I don't know exactly how to do it but I'd start with `ps -aux`, which gives the % memory used in the 4th column. Then pipe the output through `sort` and `cut` to get the output in the format you want.

nano2 06-12-2008 11:02 AM

I am trying to achieve the following

System: Wed Jul 4 12:41:33 2007
Load averages: 0.02, 0.04, 0.09
288 processes: 256 sleeping, 31 running, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0
1

any ideas how i can this with the top command

Thanks


All times are GMT -5. The time now is 12:01 AM.