Home > Backend Development > PHP Tutorial > PHP-FPM日志告警"seem busy"

PHP-FPM日志告警"seem busy"

WBOY
Release: 2016-06-23 13:36:46
Original
900 people have browsed it

之前专门写过一篇PHP-FPM优化办法

一台测试机的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文件

保存退出后重启php-fpm

#/etc/init.d/php-fpm reload

3.验证结果与持续观察

后续观察php-fpm日志,未发现类似日志出现

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template