views:

163

answers:

2

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
...
+7  A: 

try

ps -eo pid,rss,cmd
Norbert Hartl
+1 for beating me :)
gacrux
Thank you. Did not knew it could be so simple
Toni
A: 

Wasn't there something like the /proc directory? /proc/[id]/mem should lead you there.

xtofl