First, Introduction
Apachebench, or AB, is a gadget that comes with Apache, designed for stress testing in HTTP Server.
Ii. Methods of Use
The most commonly used methods are as follows:
Ab-n 10-c http://www.google.com
This command indicates that 10 requests are sent to the www.google.com, 10 times for one concurrent request, that is, 10 requests are sent at a time.
All available parameters are as follows:
Usage:/usr/local/apache/bin/ab [Options] [http://]hostname[:p ort]/path
options are:-
n Requests number of Requests to perform
-c concurrency number of multiple requests to make
-t timelimit to Max. Nses-
P postfile File containg data to POST-
T content-type content-type header for POSTing-
v. verbosity how M Uch Troubleshooting info To print-
W print out results in HTML tables-
x attributes String to insert as table attr Ibutes-
y attributes string to insert as TR attributes-
z attributes string to insert as TD or TH attributes
-v Print version number and exit-
K use HTTP KeepAlive feature
-H Display usage information (this message)