3
AB的负载测试…伪造的失败请求(长度)
为了自己的好奇心,在我的服务器上进行一些负载测试: ab -kc 50 -t 200 http://localhost/index.php 这将打开50个keep-alive连接200秒,并用index.php请求猛击我的服务器 结果显示: Concurrency Level: 50 Time taken for tests: 200.007 seconds Complete requests: 33106 Failed requests: 32951 (Connect: 0, Receive: 0, Length: 32951, Exceptions: 0) Write errors: 0 Keep-Alive requests: 0 Total transferred: 1948268960 bytes HTML transferred: 1938001392 bytes Requests per second: 165.52 …