Count PHP-FPM processes per pool
which site is causing high load | php-fpm max_children reached | too many php processes | php | php-fpm | load | processesps -eo args | grep '[p]hp-fpm: pool' | awk '{print $NF}' | sort | uniq -c | sort -rnReads the process names of all PHP-FPM workers that match the pattern php-fpm: pool <name> and counts them per pool. On Plesk, the pool name matches the domain. If a pool is constantly at its pm.max_children limit, requests have to wait and the site becomes slow.
Note: The warning server reached pm.max_children setting appears in the FPM log of the respective PHP version.
Also searched as
- which site is causing high load
- php-fpm max_children reached
- too many php processes