I have Nginx + php5-fpm. Several times per hour my website stucks and in logfile I see the following:
WARNING: [pool www] server reached pm.max_children setting (5), consider raising it.
/etc/php5/fpm/pool.d/www.conf file contains the following configuration:
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
Server: AMD Opteron™ 3280, Octo-Core, 8x 2.4 GHz, 16 GB DIMM (DDR3).
I have no idea what numbers should I put in www.conf file for this server. Can me help somebody? Thanks
pm.max_childrenis much too low. A value of 10 is reasonable for a small VPS server with 1GB of RAM; you have a much larger server. Raise this value until you stop receiving the errors, then raise it again in case you get a traffic spike. – Michael Hampton Feb 16 '13 at 19:36