我已经在Windows Server 2012上使用FASTCGI配置了NGINX
我的nginx.conf文件https://pastebin.com/bBVCyGng 我的www.conf文件https://pastebin.com/DgxHceYj
nginx状态结果 /状态 活动连接:996 服务器接受已处理的请求 6264 6264 18947 阅读:0写作:539等待中:372
apache基准测试结果
ab -k -n20000 -c1000 https://my.site/
Server Software: nginx/1.15.10
Server Hostname: xxxxxx
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
TLS Server Name: xxx
Document Path: /
Document Length: 0 bytes
Concurrency Level: 1000
Time taken for tests: 120.627 seconds
Complete requests: 20000
Failed requests: 18390
(Connect: 0, Receive: 0, Length: 15594, Exceptions: 2796)
Non-2xx responses: 15594
Keep-Alive requests: 15594
Total transferred: 8892606 bytes
HTML transferred: 5411118 bytes
Requests per second: 165.80 [#/sec] (mean)
Time per request: 6031.342 [ms] (mean)
Time per request: 6.031 [ms] (mean, across all concurrent requests)
Transfer rate: 71.99 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1564 7031.4 0 45293
Processing: 234 4086 12225.4 410 72947
Waiting: 0 4034 12241.4 401 72947
Total: 234 5650 18301.9 414 106891
Percentage of the requests served within a certain time (ms)
50% 414
66% 537
75% 662
80% 809
90% 1880
95% 51471
98% 79265
99% 102255
100% 106891 (longest request)
nginx错误日志。
2019/04/02 08:48:00 [error] 7804#6220: *33286 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: xx.xx.xx.xx, server: _server, request: "POST /xyz.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9124", host: "mysite.com"
2019/04/02 08:41:17 [error] 7804#6220: *14592 no live upstreams while connecting to upstream, client: xx.xx.xx.xx, server: _server, request: "POST /xyz.php HTTP/1.1", upstream: "fastcgi://php_farm", host: "mysite.com"
我的服务器有8GB RAM和4个CORE处理器,但是该系统无法响应并让我返回错误 有人可以帮我解决这个问题吗?