Created
May 6, 2021 15:14
-
-
Save lukecav/5cb3d55dc649c7ad321dd3cf0d141d27 to your computer and use it in GitHub Desktop.
Find the PHP-FPM usage and PHP-FPM average
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 php-fpm --sort:rss | |
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"Mb") }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.kinamo.be/en/support/faq/determining-the-correct-number-of-child-processes-for-php-fpm-on-nginx