Skip to content

Instantly share code, notes, and snippets.

@nixjobin
Created September 21, 2016 21:33
Show Gist options
  • Save nixjobin/ee1e93ca6472a84e34af47eeb8e15bae to your computer and use it in GitHub Desktop.
Save nixjobin/ee1e93ca6472a84e34af47eeb8e15bae to your computer and use it in GitHub Desktop.
ps -ylC apache2 | 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