Created
February 10, 2015 05:13
-
-
Save alexclifford/75646036df8d557cf927 to your computer and use it in GitHub Desktop.
List average Apache process size
This file contains hidden or 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
ps -ylC httpd --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment