LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-31-2007, 07:00 AM   #1
kashameni
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
how to find max memory usage for process in Linux by command line


Not with TOP command .
Any other way to find the which process is using maximum memory.
It will list that process only

Thanks in advance

Last edited by kashameni; 05-31-2007 at 07:02 AM.
 
Old 05-31-2007, 07:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
clearly not a members intro. moved to Linux - Newbie.
 
Old 05-31-2007, 08:35 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
you can try ps -aux. there's a column on memory percentage.
 
Old 05-31-2007, 08:43 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,446

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
Sounds like homework.
Start in /proc and see what you find.
 
Old 05-31-2007, 08:54 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
You might find 'man vmstat' interesting ....
 
Old 05-31-2007, 09:02 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Quote:
Not with TOP command .
Any other way to find the which process is using maximum memory.
It will list that process only
Reminder to LQers, we don't answer homework questions.

Comment to kashameni, if you're going to post homework questions, at least be courteous enough to reword them to sound like you're actually interested in knowing the answer.
 
Old 05-31-2007, 09:04 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
I'd go with ghostdog ... ps -aux ... and throw sort and tail into the mix :}

And, as always: man is your friend!


Cheers,
Tink
 
Old 06-01-2007, 12:49 AM   #8
kashameni
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
With ps -aux It will display all processess with cpu memory etc
I heard one command is there to find maximum memory used by process. It will list only that process.
 
Old 06-01-2007, 12:50 AM   #9
kashameni
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Quakeboy02
Reminder to LQers, we don't answer homework questions.

Comment to kashameni, if you're going to post homework questions, at least be courteous enough to reword them to sound like you're actually interested in knowing the answer.
Please don't think like that.Even i tried on google.
 
Old 06-01-2007, 02:39 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
even? you even tried the worlds most popular search engine once? impressive...
 
  


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



All times are GMT -5. The time now is 01:25 PM.

Main Menu
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