php-fpm进程CPU猛升不降

最近发现网站经常503打不开情况

查看php-fpm日志报错

[22-Mar-2019 21:01:23] 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 12 total children
[22-Mar-2019 21:01:24] 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 17 total children
[22-Mar-2019 21:01: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 0 idle, and 22 total children
[22-Mar-2019 21:01:26] 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 27 total children
[22-Mar-2019 21:01:27] WARNING: [pool www] server reached pm.max_children setting (30), consider raising it

修改php-fpm.conf配置

pm.max_children = 50
pm.start_servers = 15
pm.min_spare_servers = 10
pm.max_spare_servers = 40
最后修改:2个月前
如果觉得我的文章对你有用,请随意赞赏

共有 0 条评论