« Converting from .mov filesHOWTO: Create an ISO image from a CD or DVD »

HOWTO: Find the memory usage of a process

11/03/09

Permalink 09:28:50 am, by richard Email , 130 words   English (GB)
Categories: Ubuntu Linux, OS and Systems Administration

HOWTO: Find the memory usage of a process

Well this was something i needed to do the other day and as I would not need to do it again for some time, and would therefore forget what i did. i simply wrote it down for later use :)

Take a look as the man page for the command ps. Well thats about it really. Ok, a little more info would be nice.

What is needed is to change the format of the output to give the required information. I my case I wanted to see only the PID, user name, the command name and the memory usage. This will give the following:

ps -o pid,euser,comm,rss

Take a look at the section STANDARD FORMAT SPECIFIERS there are a hole bunch of them to choose from.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test