Created
February 26, 2013 16:04
-
-
Save bdossantos/5039608 to your computer and use it in GitHub Desktop.
php5-fpm 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
ps -ylC php5-fpm --sort:rss | awk '!/RSS/ { s+=$8 } END { printf "%s\n", "Total memory used by PHP-FPM child processes: "; printf "%dM\n", s/1024 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://myshell.co.uk/index.php/adjusting-child-processes-for-php-fpm-nginx/