5

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 ... 
1
  • 1
    This belongs on serverfault.com Commented May 18, 2009 at 12:27

2 Answers 2

9

try

ps -eo pid,rss,cmd 
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. Did not knew it could be so simple
0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.