nginx moodle php-fpm pm.max_children

WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 8 idle, and 58 total children

WARNING: [pool www] server reached pm.max_children setting (50), consider raising it

解决办法

平均意义上r pm.max_children 可以这样计算: 总内存*80% / 80M

 6144MB / 80MB = 70+

pm.max_children = 70
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 35
pm.max_requests = 500

然后 service php-fpm restart

启动应用(ab -n 100000 -c 100 http://example.com/)

ps aux|grep php-fpm|wc -l

查看即可

 

你可能感兴趣的:(nginx moodle php-fpm pm.max_children)