php-fpm停止响应池似乎很忙

时间:2017-03-24 07:32:45

标签: php

php-fpm每天早上7点崩溃(我此时没有特定的cron),日志说:

 WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 39 idle, and 180 total children

服务器硬件:

nproc : 40
RAM: 256Go

这里是php-fpm的www.conf:

[www]

user = www-data
group = www-data

listen.owner = www-data
listen.group = www-data
listen.mode = 0666

listen.allowed_clients = 127.0.0.1

pm = dynamic
pm.max_children = 350
pm.start_servers = 40
pm.min_spare_servers = 40
pm.max_spare_servers = 70
pm.process_idle_timeout = 60s;
pm.max_requests = 500

request_terminate_timeout = 0

chdir = /

php_flag[display_errors] = off
php_admin_value[error_reporting] = 0
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 1024M
php_admin_value[session.save_path] = /tmp/

我已经尝试增加max_children值,但它什么都没改变

0 个答案:

没有答案