- 积分
- 10
- 威望
-
- 金钱
-
- 注册时间
- 2014-3-11
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
我的服务器是八核CPU,16G的内存,Nginx的nginx.conf里设置worker_processes的什为16,另外php-fpm.conf设置如下:
- [global]
- pid = /usr/local/php/var/run/php-fpm.pid
- error_log = /usr/local/php/var/log/php-fpm.log
- log_level = notice
- [www]
- listen = /tmp/php-cgi.sock
- user = www
- group = www
- pm = dynamic
- pm.max_children = 200
- pm.start_servers = 20
- pm.min_spare_servers = 4
- pm.max_spare_servers = 200
- request_terminate_timeout = 5000
复制代码
php-fpm.log错误日志提示
-
- [29-Mar-2014 23:29:35] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 72 total children
- [29-Mar-2014 23:29:42] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 80 total children
- [29-Mar-2014 23:30:51] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 1 idle, and 114 total children
- [29-Mar-2014 23:31:19] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 134 total children
- [29-Mar-2014 23:31:36] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 149 total children
- [29-Mar-2014 23:31:37] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 3 idle, and 150 total children
- [29-Mar-2014 23:31:38] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 151 total children
- [29-Mar-2014 23:31: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 153 total children
- [29-Mar-2014 23:31:57] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 172 total children
- [29-Mar-2014 23:31:58] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 1 idle, and 173 total children
- [29-Mar-2014 23:31:59] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 3 idle, and 176 total children
- [29-Mar-2014 23:32:34] WARNING: [pool www] server reached pm.max_children setting (200), consider raising it
复制代码 |
|