• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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