I am using ubuntu 15.04 in my dedicated server with 40 cpu cores and 160GB of RAM with one heavy traffic wordpress site running. I am using Nginx as the webserver and varnish as the cache server. My php5-fpm.conf setting is:
listen = 127.0.0.1:7654
pm = dynamic
pm.max_children = 500
pm.start_servers = 80
pm.min_spare_servers = 20
pm.max_spare_servers = 160
pm.max_requests = 1000
But it is still showing the error:
[pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 17 idle, and 92 total children
WARNING: [pool www] server reached pm.max_children setting (200), consider raising it
I have tried increasing the numbers but still no luck. The memory used by one children is neary ~75MB. How can I figure out the best configuration for my php?