试图让“池看起来很忙”的错误停止与PHP的FPM

我有一台运行3核心和7GB内存的机器。 在这台机器上我们正在运行Nginx 1.4.2和PHP-FPM。 每个PHP-FPM进程使用〜30MB的RAM。

所以这是我设置的池configuration:

[www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = nginx group = nginx pm = dynamic pm.max_children = 200 ; 200 x 30MB = 6000MB (leaving ~1.5GB for random stuff on the server) pm.start_servers = 20 ; 20 + (35 - 20) / 2 (rounded to the nearest 5) pm.min_spare_servers = 20 pm.max_spare_servers = 35 pm.max_requests = 500 slowlog = /var/log/php-fpm/www-slow.log php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session 

我在/etc/nginx/nginx.conf也有以下/etc/nginx/nginx.conf

 user nginx; worker_processes 3; events { worker_connections 4096; multi_accept on; } 

我现在的问题是,我看到其中有一些时不时的通过日志, 这在Nginx中导致110 (connection timed out)错误。

 [24-Jul-2013 11:58: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 0 idle, and 42 total children [24-Jul-2013 11:58:21] 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 50 total children [24-Jul-2013 11:58:22] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 66 total children [24-Jul-2013 11:58:23] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 86 total children [24-Jul-2013 11:58:24] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 106 total children [24-Jul-2013 11:58:25] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 17 idle, and 126 total children 

根据CPU / RAM规格,设置我的pm.*值是多less安全的数字? 我不想把它们推得太高,不再像现在这样瘫痪机器。