1. 程式人生 > >PHP-FPM日誌中出現”好像很忙碌”,您需要增加pm.start_servers,或pm.min/ max_spare_servers

PHP-FPM日誌中出現”好像很忙碌”,您需要增加pm.start_servers,或pm.min/ max_spare_servers

seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 9 idle, and 71 total children

調整php-fpm.conf中的配置為:

pm = dynamic
pm.start_servers=32
pm.min_spare_servers=32
pm.max_spare_servers=1024
pm.max_requests = 102400
rlimit_files = 65535