i have a problem with nginx and php-fpm, i searched already in this form but i found no solution for it.
Server: 32 cores 64gb memory
Settings:
nginx.conf:
worker_processes 32;
events {
worker_connections 2048;
}
in the php-fpm config
pm.max_children = 1500
pm.start_servers = 500
pm.min_spare_servers = 500
pm.max_spare_servers = 500
it work for few minutes, but if we have more users on the server, i got follow errror message:
[06-Oct-2014 15:23:20] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 483 idle, and 1068 total children
and the page is very slow and a lot of users have the 502 bad gateway message
The load average is about 20 20 20
i tried a lot of differnt settings, but i don't know what is the reason, i hope sombody can help.
Best regards