LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What command can I use to see the memory usage by application (http://www.linuxquestions.org/questions/linux-newbie-8/what-command-can-i-use-to-see-the-memory-usage-by-application-4175436439/)

EdJulien 11-09-2012 12:31 PM

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

Habitual 11-09-2012 01:32 PM

You said "a process" so you know which one it is?

EdJulien 11-09-2012 01:39 PM

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.

SilentSam 11-09-2012 01:43 PM

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.

EdJulien 11-09-2012 01:44 PM

Perfect, this will give me what I'm looking for. Thanks

Habitual 11-09-2012 01:52 PM

htop is good also, it has some sorting options that top does not.

EdJulien 11-09-2012 01:53 PM

Thanks


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