Issue Multiple PHP-FPM master processes

John W

Basic Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
Plesk Obsidian 18.0.68 Update #2
It started over the weekend when my server spun up multiple PHP-FPM master processes. Even though the server load on average is below 2, the PHP response is really slow, taking a minute to load a basic WordPress page. Any idea what's causing it? I already restarted the service and server to no avail. Updated/patched PHP 8.2 didn't help. Upgraded and switched subscriptions to PHP 8.3, now multiple master processes for PHP 8.3 have spun up. TIA.
 
I double-checked all my sites, they're set to pm.max_children=20. The following error kept coming up:
WARNING: [pool plesk-php83-fpm.plesk-service.localdomain] server reached max_children setting (2), consider raising it

Any idea where that's located? Thanks.
 
Thanks, @John W . Can you please try following the steps from this guide and let us know if that helps?
Hi @Sebahat.hadzhi,

The command returned "160 plesk-php82-fpm.plesk-service.localdomain" and the subsequent log query shows

==================================================
WARNING: [pool plesk-php82-fpm.plesk-service.localdomain] server reached max_children setting (2), consider raising it
==================================================

I confirmed that all my subscriptions are already set to pm.max_children=20. Where is the "plesk-php82-fpm.plesk-service.localdomain" variable configured?

Thanks,
John
 
Hey, John. If I am not mistaken, this is the global shared pool. Can you try increasing the max_children above 20 for the sake of testing?
 
Am I supposed to modify /opt/plesk/php/8.2/etc/php.ini, /opt/plesk/php/8.2/etc/php-fpm.conf, or some other way?
 
I was referring to the domains you increased the limits for already. However, before you do that could you try: running

Bash:
grep -r "pm.max_children" /opt/plesk/php/8.2/etc/php-fpm.d/
 
Back
Top