Ref: http://abdussamad.com/archives/488-Memory-usage-of-a-process-under-Linux.html
To find the RAM usage of process by name, one can use command like below
---------------
--------------
For example to find memory usage of google chrome, use command like below.
Sample output would be like below...
To find the RAM usage of process by name, one can use command like below
---------------
--------------
For example to find memory usage of google chrome, use command like below.
PID RSS S TTY TIME COMMAND 3299 149484 S ? 00:01:57 /opt/google/chrome/chrome 3310 7984 S ? 00:00:01 /opt/google/chrome/chrome 3315 14564 S ? 00:00:00 /opt/google/chrome/chrome --type=zygote 3320 11112 S ? 00:00:00 /opt/google/chrome/chrome --type=zygote 3393 41984 S ? 00:00:00 /opt/google/chrome/chrome --type=renderer
But to find cumulative/sum of RAM usage of all those process, we can have small shell script which do the job for you.
Save it as psmem.sh and run it like this:
No comments:
Post a Comment