Search code examples
nginxmaxchildrenpleskphp

Plesk 11.5 PHP-FPM error: server reached max_children setting (5), consider raising it


Does anyone know how I might solve this particular error in a multi-domain VHOST Plesk environment?

server reached max_children setting (5), consider raising it

There are a number of domains listed in the /etc/php-fpm.d/ folder, which contain the following settings:

pm.max_children = 5
pm.process_idle_timeout = 10s
; Following pm.* options are used only when 'pm = dynamic'
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 5

Is there a way to change this globally? Each conf file comes with a warning not to alter the file directly since the changes will be overwritten when the files are re-generated.

ANy ideas?


Solution

  • In all each php-fpm config files there is a notes from Parallels:

    To override pool configuration options, specify them in [php-fpm-pool-settings] section of /var/www/vhosts/system/domain.tld/conf/php.ini file.

    As I see there is no way to tune this setting by plesk utilities or from GUI.

    There is template:

    /usr/local/psa/admin/conf/templates/default/domain/service/fpm.php
    

    but this template is for nginx, not for php-fpm configs.