Created
March 30, 2016 10:13
-
-
Save makeittotop/026466f2f9191afd46dedd74f77277db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "httpd or apache2 ?" | |
read httpd | |
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