Operating system: Ubuntu Linux
OS version: 18.04
Original 2017 issue highlighting this: PHP-FPM pm.max_children and control panel and server templates [#52223] | Virtualmin
Just dealt with a server swamping with PHP-FPM child processes. The ‘pm.max_children’ was set to 9999 by default in all PHP-FPM pools. The default PHP-FPM settings are unreasonable and can’t find a global way to fix them. The sample config setting is
pm.max_children = 5 but Virtualmin used
pm.max_children = 9999.
I can’t see any global way to fix this, unless adding it to ‘Additional FPM pool options’ will override the default pool setting? Or is there a template somewhere to edit? I can’t find any setting for this at the per-site level either. Though you can ‘manually edit config’ under Services → PHP-FPM options to change it. Ideally there would get a sensible starting default value and a global way to change/limit that.
Refs for PHP-FPM settings issues: