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:
Total memory usage by process, for example Apache:
Average memory used by a process (if it uses childs):
All of them use process’s resident memory (not virtual memory).