php-fpm日志中出现“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 6 total children” 首先分析验证问题: 1.报警级别“WARNING”,也就是说业务受到的影响比较小,实际验证也是这样; 2.php-fpm的进程数比较少,建议增加 pm.start_servers, or pm.min/max_spare_servers 3.增加到多少呢?spawning 8,也就是说至少得8个进程; 解决问题: 1.执行 ps -ef |grep php 可以得到当前的php-fpm进程数以及php-fpm.conf配置文件位置 2.修改php-fpm.conf文件
pm.start_servers = 8
pm.min_spare_servers = 8
pm.max_spare_servers = 10 保存退出后重启php-fpm 3.验证结果与持续观察
后续观察php-fpm日志,未发现类似日志出现