我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

WBOY
發布: 2016-06-06 20:28:31
原創
1596 人瀏覽過

我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

重启下 php-fpm 就又能访问了 . 但一会就又出现页面空白问题 .

2015/06/30 11:25:22 [error] 29571#0: *8857 FastCGI sent in stderr: "PHP message: PHP Fatal error: Too many concurrent users, try again in 4 seconds. in Unknown on line 0" while reading response header from upstream, client: 183.57.152.32, server: a.apple.com, request: "GET /index.php/admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host:"a.apple.com"


我看到这个 php-fpm.conf 配置是这样的 ...
是不是少了什么东西 ...

1 [global]
2 pid = /usr/local/php/var/run/php-fpm.pid
3 error_log = /usr/local/php/var/log/php-fpm.log
4 log_level = notice
5
6 [www]
7 listen = /tmp/php-cgi.sock
8 listen.backlog = -1
9 listen.allowed_clients = 127.0.0.1
10 listen.owner = www
11 listen.group = www
12 listen.mode = 0666
13 user = www
14 group = www
15 pm = dynamic
16 pm.max_children = 10
17 pm.start_servers = 2
18 pm.min_spare_servers = 1
19 pm.max_spare_servers = 6
20 request_terminate_timeout = 100
21 request_slowlog_timeout = 0
22 slowlog = var/log/slow.log

回复内容:

我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

重启下 php-fpm 就又能访问了 . 但一会就又出现页面空白问题 .

2015/06/30 11:25:22 [error] 29571#0: *8857 FastCGI sent in stderr: "PHP message: PHP Fatal error: Too many concurrent users, try again in 4 seconds. in Unknown on line 0" while reading response header from upstream, client: 183.57.152.32, server: a.apple.com, request: "GET /index.php/admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host:"a.apple.com"


我看到这个 php-fpm.conf 配置是这样的 ...
是不是少了什么东西 ...

1 [global]
2 pid = /usr/local/php/var/run/php-fpm.pid
3 error_log = /usr/local/php/var/log/php-fpm.log
4 log_level = notice
5
6 [www]
7 listen = /tmp/php-cgi.sock
8 listen.backlog = -1
9 listen.allowed_clients = 127.0.0.1
10 listen.owner = www
11 listen.group = www
12 listen.mode = 0666
13 user = www
14 group = www
15 pm = dynamic
16 pm.max_children = 10
17 pm.start_servers = 2
18 pm.min_spare_servers = 1
19 pm.max_spare_servers = 6
20 request_terminate_timeout = 100
21 request_slowlog_timeout = 0
22 slowlog = var/log/slow.log

concurrent user 太多并发量了

这个问题找到解决办法了吗?

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板