• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Question PHP-FPM Settings

I would suggest you use the method from the mentioned kB article.
 
Thanks for the reply.
In the KB is mentioned:
Currently there is no way to manage these settings through Plesk UI. This functionality is expected to be implemented in next Plesk major release - Plesk Onyx.

Is it implemented yet or not?
 
In the config file I see this:
Code:
; By default use ondemand spawning (this requires php-fpm >= 5.3.9)
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s

but at the end of the file there is this:
Code:
; Following directives override default pool configuration
pm.max_requests = 200
pm.process_idle_timeout = 10s
pm.max_children = 256
pm = ondemand

Does the override works? Because after running php-fpmpal I get this:
Code:
===== Recommendations per pool =====
    --- domain.tld ---
        Current usage: 100.00%    Recommended max_children: 262 (current: 5
256)    Config file: /opt/plesk/php/7.0/etc/php-fpm.d/domain.tld.conf
 
From /opt/plesk/php/7.0/etc/php-fpm.d/domain.tld.conf:
"To override pool configuration options, specify them in [php-fpm-pool-settings] section of /var/www/vhosts/system/domain.tld.conf/conf/php.ini file."

Has that been done?
 
Yes
Code:
[php-fpm-pool-settings]
pm = ondemand
pm.max_children = 256
pm.process_idle_timeout = 10s
pm.max_requests = 200
 
I am not perfectly sure if a restart of the FPM-Service is needed, but it cannot do damage, so please try
# service plesk-php70-fpm restart
to make sure that the updated settings are applied.
 
Back
Top