LinuxQuestions.org
Visit Jeremy's Blog.
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 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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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: 300

Rep: Reputation: 37
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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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



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

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

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