php-fpm进程CPU猛升不降

2023-08-12
2,778次阅读
没有评论

最近发现网站经常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进程CPU猛升不降

修改php-fpm.conf配置

pm.max_children = 50
pm.start_servers = 15
pm.min_spare_servers = 10
pm.max_spare_servers = 40

正文完
要饭中,多少给点吧(支付宝)
post-qrcode
 
评论(没有评论)
验证码