Unix Processes Memory Usage
I’m not a sys admin, but sometimes I need to profile applications in development or production environments. When this happens I realize that I don’t remember those large -very large- commands using awk and prints everywhere.
Today was one of that days, so I decided to write this post as a reference for myself.
Total memory usage:
1
|
|
Total memory usage by process, for example Apache:
1
|
|
Average memory used by a process (if it uses childs):
1
|
|
All of them use process’s resident memory (not virtual memory).
That’s all.