• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Resolved How to increase pm.max_children globally?

Bitpalast

Plesk addicted!
Plesk Guru
Seeking a way to increase the PHP FPM pm.max_children setting globally. The default value is too low for almost every domain and we want to raise it to a much higher value for all customers.

FAQ article
https://support.plesk.com/hc/en-us/articles/214528405-Server-reached-max-children-setting-5-
only describes how to do it for a single domain. I did not find a "template" php.ini file or something on a global scale to change, so that a new default pm.max_children setting is applied to all at once.
 
Default pm.max_children value is hardcoded in phpininmng. Therefore you can increase it only per-domain as it is described in the article.
 
"Tested the solution from
https://support.plesk.com/hc/en-us/articles/214528405-Server-reached-max-children-setting-5-
Then checked the result in
/opt/plesk/php/7.0/etc/php-fpm.d/DOMAIN.TLD.conf
after /usr/local/psa/bin/php_settings -u had finished.
It does not work :-( , the pm.max_children setting has not been applied to the PHP-FPM config file of the domain."

Correction: Sorry, it worked. In that file in the upper portion, the default setting is mentioned, then on the bottom line of the file, the individual setting has been inserted. Not sure why it is done that way, because it could lead to PHP reading the first value and applying that default, not continuing to read the last instance of the same value. But obviously it does work in this case.
 
Back
Top