关于php-fpm.log错误日志提示,军哥帮我看看
我的服务器是八核CPU,16G的内存,Nginx的nginx.conf里设置worker_processes的什为16,另外php-fpm.conf设置如下:pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice
listen = /tmp/php-cgi.sock
user = www
group = www
pm = dynamic
pm.max_children = 200
pm.start_servers = 20
pm.min_spare_servers = 4
pm.max_spare_servers = 200
request_terminate_timeout = 5000
php-fpm.log错误日志提示
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 72 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 80 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 1 idle, and 114 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 134 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 149 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 3 idle, and 150 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 151 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 153 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 172 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 1 idle, and 173 total children
WARNING: seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 3 idle, and 176 total children
WARNING: server reached pm.max_children setting (200), consider raising it
按他的提示还需要调高,按你这个配置200不算多 这个问题解决了,我把它配置成
pm.max_children = 400
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 400
request_terminate_timeout = 5000
感谢军哥!:victory:
页:
[1]