• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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