Last active
August 29, 2015 14:04
-
-
Save ericnicolaas/ff429aed51cb7a4eed31 to your computer and use it in GitHub Desktop.
Print average size of Apache process (Centos 6)
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
ps aux | grep httpd | grep -v pts | awk '{ tot += $6; procs += 1; print $2,$6,$11 } END { print "TOTAL: ",tot,"/",procs,"=",tot/procs }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment