LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 11-09-2012, 12:31 PM   #1
EdJulien
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
What command can I use to see the memory usage by application


I am having an issue with a process / application using up memory over time. The server bogs down over a couple of month period and has to be rebooted.
Thanks Ed
 
Old 11-09-2012, 01:32 PM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,726
Blog Entries: 3

Rep: Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628
You said "a process" so you know which one it is?
 
Old 11-09-2012, 01:39 PM   #3
EdJulien
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
No, it is what I want to discover, which process / application is it. So if I can get the memory information from the system on a regular basis, like once a day I should hopefully be able to identify which process / application is not releasing the memory. That is why I want to know what command will give me the usage by process / application.
 
Old 11-09-2012, 01:43 PM   #4
SilentSam
Member
 
Registered: Aug 2007
Location: Ottawa
Distribution: Arch Linux/Kubuntu/OpenSUSE
Posts: 287

Rep: Reputation: 31
Top will do. You can run it as a batch command (so as to pipe its output to a file) as well as specifying the refresh interval with the -b and -d switches respectively.
 
Old 11-09-2012, 01:44 PM   #5
EdJulien
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Perfect, this will give me what I'm looking for. Thanks
 
Old 11-09-2012, 01:52 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,726
Blog Entries: 3

Rep: Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628
htop is good also, it has some sorting options that top does not.
 
Old 11-09-2012, 01:53 PM   #7
EdJulien
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multithreaded application, CPU and memory usage mohitanchlia Linux - General 6 08-30-2010 10:13 AM
"free" shows far more memory usage than summing up application usage kenneho Linux - Server 2 08-06-2010 07:56 AM
runtime memory usage by a c++ application elias_28 Linux - Software 3 07-26-2010 03:03 AM
What tools to use to figure out memory usage for an application nbkq88x Linux - Newbie 1 07-27-2009 04:44 PM
Command to show each application/process memory usage and its total gn00kie Linux - Enterprise 2 09-21-2006 03:08 AM


All times are GMT -5. The time now is 05:44 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