Created
May 29, 2014 17:29
-
-
Save zushane/4c1089a0a75d7a5f4904 to your computer and use it in GitHub Desktop.
Apache Process Size Check - check total memory usage of all Apache httpd processes.
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
#!/bin/bash | |
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