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
查看即可
相关文章推荐
- nginx+php测试时显示 502 bad gateway的解决方法
- Nginx编译安装
- 2.nginx架构及工作流程
- nginx处理别人域名解析到你的ip
- Linux & Nginx 性能参数调优
- Centos 6.5 编译安装Nginx-1.5.13+php-5.5.10+Mysql-5.5.37
- Nginx学习(四):简单的负载均衡配置
- Nginx学习(二):nginx.conf学习
- 高流量站点NGINX与PHP-fpm配置优化
- 1.2 nginx编译安装
- 1.7nginx用户认证
- 1.8 nginx域名跳转
- 1.9 nginx不记录指定文件类型的日志
- 2.0 nginx日志切割
- Nginx安装与使用
- nginx+keepalive 实现高可用负载均衡方案
- 实现一个线程池
- mac问题小笔记
- 使用ngxtop统计nginx请求
- 随机修改nginx端口脚本及思路