Skip to content

Instantly share code, notes, and snippets.

@lloiacono
Last active November 12, 2017 11:29
Show Gist options
  • Save lloiacono/4dde0e50387966122cf0 to your computer and use it in GitHub Desktop.
Save lloiacono/4dde0e50387966122cf0 to your computer and use it in GitHub Desktop.
Get Process Avg memory usage
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)}'
# https://www.linuxatemyram.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment