- 积分
- 50
- 威望
-
- 金钱
-
- 注册时间
- 2012-2-19
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2013-11-24 12:42:02
|
显示全部楼层
回复 2# 的帖子
[24-Aug-2013 20:48:14] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 34 total children
[24-Aug-2013 20:48:37] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 23 total children
[24-Aug-2013 20:48:38] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 24 total children
[24-Aug-2013 20:48:39] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 25 total children
[24-Aug-2013 20:48:40] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 26 total children
[24-Aug-2013 20:48:41] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 27 total children
[24-Aug-2013 20:48:42] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 28 total children
全都是这些提示 是否是起始服务器太少?这个值弄到多少算ok?怎么去计算这个值呢?
我现在的php-fpm 配置如下
[www]
listen = /tmp/php-cgi.sock
user = www
group = www
pm = dynamic
pm.max_children =200
pm.start_servers = 8
pm.min_spare_servers = 4
pm.max_spare_servers = 100
request_terminate_timeout = 5s
我的cpu是1G单核的,希望军哥给点建议,如何设置比较合理,现在的设置cpu经常跑到100%
而且同时优化数据库所有表常会出现502错误 优化数据库单个表不会出现 是否需要增加服务器内存? 谢谢
[ 本帖最后由 superman 于 2013-11-24 12:53 编辑 ] |
|