AB is a very useful test tool for Apache, and when you're done with Apache, you can find AB below the bin.
Parameter descriptions and examples
We can simulate 100 concurrent users and send 1000 requests to a page.
Input command: ab-n1000-c100 http://www.jb51.net/
Where-n represents the number of requests,-C represents the number of concurrent
return Result:
# #首先是apache的版本信息 This is apachebench, Version 2.3 <Revision:655654> Copyright 1996 Adam Twiss, Zeus Technology lt D, http://www.xxx.xxx/Licensed to the Apache Software Foundation, http://www.apache.org/Benchmarking xxx.xxx.com (being P atient) Server software:apache/2.2.19 # #apache版本 Server Hostname:vm1.xxx.com # #请求的机子 Server port:80 # # Request Port Document Path:/xxx.html document length:25 bytes # #页面长度 concurrency level:100 # #并发数 time taken for Te sts:0.273 seconds # #共使用了多少时间 Complete requests:1000 # #请求数 Failed requests:0 # #失败请求 Write errors:0 to Tal transferred:275000 bytes # #总共传输字节数, containing HTTP header information such as HTML transferred:25000 bytes # #html字节数, actual page pass bytes Requests per second:3661.60 [#/sec] (mean) # #每秒多少请求, this is a very important parameter value, the server throughput time of per request:27.310 [MS] (mean) # #用户平均请求等待时间 time Per request:0.273 [MS] (mean, across all concurrent requests) # #服务器平均处理时间, which is the countdown to server throughput Transfer rate:983.34 [Kb YTES/SEC] Received # #每秒获Data length Connection times (ms) min MEAN[+/-SD] median max connect:0 1 2.3 0 processing:6 25 3. 2 Waiting:5 3.2 total:6 4.0 percentage of the requests served within a
Certain time (MS) 50% 25 # # 50% 's request returns 66% 26 # # 60% in the 25MS request returns 75% 26 80% 26 90% 27 95% 31 in 26ms
98% 99% 100% (longest request)
Apache's AB tool is also considered a DDoS attack tool