首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

Apache 网站压力测试用具 ab

2012-06-20 
Apache 网站压力测试工具 abhttp://httpd.apache.org/docs/2.0/programs/ab.html常用参数-n 测试的请求次

Apache 网站压力测试工具 ab

http://httpd.apache.org/docs/2.0/programs/ab.html

常用参数
-n 测试的请求次数
-c 并发请求个数
-k keep alive,所有的请求保持在同一个会话里面

ab -n 100 -c 10 http://www.yahoo.com/
Concurrency Level:      10Time taken for tests:   1.889 secondsComplete requests:      100Failed requests:        0Write errors:           0Total transferred:      1003100 bytesHTML transferred:       949000 bytesRequests per second:    52.94 [#/sec] (mean)Time per request:       188.883 [ms] (mean)Time per request:       18.888 [ms] (mean, across all concurrent requests)Transfer rate:          518.62 [Kbytes/sec] receivedConnection Times (ms)              min  mean[+/-sd] median   maxConnect:       57   59   1.7     59      64Processing:   117  126   7.5    124     162Waiting:       57   62   7.0     60      98Total:        175  186   8.0    184     224Percentage of the requests served within a certain time (ms)  50%    184  66%    186  75%    187  80%    188  90%    192  95%    203  98%    216  99%    224 100%    224 (longest request)

热点排行