Command line to get the memory used by the process

What command line should I write to display the memory used by the process, as well as the command line of the process, and this is pid?

Sort of:

pid mem cmdline
--- --- -------
112 12M mysql -param1 5 -param2 12
115 15M apache -param1 44 -param2 8
...
+5
source share
2 answers

to try

ps -eo pid,rss,cmd
+9
source

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

0
source

All Articles