LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-10-2008, 10:21 AM   #1
nano2
Member
 
Registered: May 2007
Posts: 100

Rep: Reputation: 15
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
 
Old 06-10-2008, 11:17 AM   #2
sfjoe
Member
 
Registered: Jun 2007
Location: San Francisco
Distribution: Centos 4, Debian
Posts: 55

Rep: Reputation: 16
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.
 
Old 06-12-2008, 11:02 AM   #3
nano2
Member
 
Registered: May 2007
Posts: 100

Original Poster
Rep: Reputation: 15
Question

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find history of a job killed by "kernel: Out of Memory: Killed process" poulacou Linux - Server 3 09-20-2007 05:24 PM
how to find max memory usage for process in Linux by command line kashameni Linux - Newbie 9 06-01-2007 02:39 AM
to find process using max memory sharma.kashyap Linux - General 3 02-22-2007 11:28 AM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 04:32 PM
Can't see process with ps or top Lemon Songster Linux - Newbie 0 10-23-2004 09:52 AM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration