您的位置:首页 > 运维架构 > Nginx

nginx moodle php-fpm pm.max_children

2016-04-01 13:11 1416 查看

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

查看即可

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: