I am trying to solve this problem on a VPS Debian based 8GB RAM, 2v Cores, using nginx and php7-fpm.
Checking /var/log/php7.0-fpm.log
I have a lot of these warnings:
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 7 total children
This is my /etc/php/7.0/fpm/pool.d/www.conf
:
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
;pm.process_idle_timeout = 10s;
pm.max_requests = 200
Can anyone help me solve this?
Update:
I have increased the values to:
pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 500
In the error log I continue receiving:
[06-Oct-2016 16:35:08] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 4 idle, and 17 total children