Last active
December 21, 2015 13:59
-
-
Save tadas-s/6316807 to your computer and use it in GitHub Desktop.
average apache process size
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
# approx apache process count | |
ps -eLf | grep httpd | wc -l | |
# total and average memory stats | |
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
Just some snippets for Apache tunning