LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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 06:02 AM.
 
Old 05-31-2007, 06:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

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

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sounds like homework.
Start in /proc and see what you find.
 
Old 05-31-2007, 07:54 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You might find 'man vmstat' interesting ....
 
Old 05-31-2007, 08:02 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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, 08:04 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 05-31-2007, 11:49 PM   #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 05-31-2007, 11:50 PM   #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, 01:39 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 PM.

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
Open Source Consulting | Domain Registration