Skip to content

Instantly share code, notes, and snippets.

@nixjobin
Created September 21, 2016 21:32
Show Gist options
  • Save nixjobin/b7bb6add5e230ac0f732a7347e7bded8 to your computer and use it in GitHub Desktop.
Save nixjobin/b7bb6add5e230ac0f732a7347e7bded8 to your computer and use it in GitHub Desktop.
ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment