Created
September 4, 2015 08:35
-
-
Save dseg/528b65de2afbafe58ab9 to your computer and use it in GitHub Desktop.
Get apache memory usage
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/sh | |
HTTPD=apache | |
ps aux | grep "$HTTPD" | awk '{mem+=$6} END{ print "Average: " (mem/NR) "MB" }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment