Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

command line to get the memory used by process

What command line should I write to display the memory used by process as well as the process command line and it's pid ?

Something like:

pid mem cmdline
--- --- -------
112 12M mysql -param1 5 -param2 12
115 15M apache -param1 44 -param2 8
...
like image 920
Toni Avatar asked May 18 '09 12:05

Toni


People also ask

How do I see how much memory a process is using?

In the Activity Monitor utility, you can see the name of each process running ("Process Name" column) and how much memory each process is using ("Real Mem" column).


1 Answers

try

ps -eo pid,rss,cmd
like image 122
Norbert Hartl Avatar answered Oct 17 '22 21:10

Norbert Hartl