Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
apacheBench始终给出错误非2xx响应:_Apache_Concurrency_Apachebench_Parallel Testing - Fatal编程技术网

apacheBench始终给出错误非2xx响应:

apacheBench始终给出错误非2xx响应:,apache,concurrency,apachebench,parallel-testing,Apache,Concurrency,Apachebench,Parallel Testing,我已经在apache bench上工作了一段时间,到现在为止,它工作得很好。然而,今天我开始收到一些非2xx响应:。为了进一步调查,我尝试使用一个简单的网站运行测试,因此我运行: ab-n 100-c 10 这就是我得到的: This is ApacheBench, Version 2.3 <$Revision: 1796539 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Li

我已经在apache bench上工作了一段时间,到现在为止,它工作得很好。然而,今天我开始收到一些
非2xx响应:
。为了进一步调查,我尝试使用一个简单的网站运行测试,因此我运行:

ab-n 100-c 10

这就是我得到的:

This is ApacheBench, Version 2.3 <$Revision: 1796539 $> Copyright 1996
Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to
The Apache Software Foundation, http://www.apache.org/

Benchmarking www.yahoo.com (be patient).....done


Server Software:        ATS 
Server Hostname:        www.yahoo.com    
Server Port:            80     
Document Path:          / 
Document Length:        8 bytes
Concurrency Level:      10 
Time taken for tests:   4.898 seconds
Complete requests:      100 
Failed requests:        0 
Non-2xx responses:      100 
Total transferred:      36875 bytes 
HTML transferred:       800 bytes 
Requests per second:    20.42 [#/sec] (mean) 
Time per request:       489.817 [ms] (mean) 
Time per request: 48.982 [ms] (mean, across all concurrent requests) 
Transfer rate:          7.35 [Kbytes/sec] received
Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:       39   48   6.3     47      66
Processing:    50  416  89.3    415     521
Waiting:       49  254 121.0    261     512
Total:         93  464  92.1    460     575
Percentage of the requests served within a certain time (ms)
  50%    460
  66%    476
  75%    511
  80%    541
  90%    569
  95%    572
  98%    574
  99%    575
  100%    575 (longest request)
这是ApacheBench,版本2.3版权所有1996
亚当·特维斯,宙斯科技有限公司,http://www.zeustech.net/ 许可给
Apache软件基金会,http://www.apache.org/
基准测试www.yahoo.com(耐心等待)…完成
服务器软件:ATS
服务器主机名:www.yahoo.com
服务器端口:80
文档路径:/
文件长度:8字节
并发级别:10
测试时间:4.898秒
完成申请:100
失败的请求:0
非2xx响应:100
传输总量:36875字节
传输的HTML:800字节
每秒请求数:20.42[#秒](平均值)
每次请求的时间:489.817[ms](平均值)
每个请求的时间:48.982[ms](所有并发请求的平均时间)
传输速率:接收到7.35[千字节/秒]
连接时间(毫秒)
最小平均值[+/-sd]最大中值
连接:39486.34766
处理:5041689.3415521
等候电话:49254 121.0261512
总数:9346492.1460575
在特定时间内服务的请求百分比(毫秒)
50%    460
66%    476
75%    511
80%    541
90%    569
95%    572
98%    574
99%    575
100%575(最长请求)
正如输出所示,即使使用外部url,我也会得到100%非2xx响应。有人知道我该怎么解决这个问题吗


谢谢大家!

这可能是因为当访问Yahoo.com时,他们正在重定向您,因此您将得到30倍的响应,而不是20倍的直接响应