Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ab(8)
Edit
PageHistory
Diff
Info
LikePages
ab !!!ab NAME SYNOPSIS DESCRIPTION OPTIONS BUGS SEE ALSO ---- !!NAME ab - Apache HTTP server benchmarking tool !!SYNOPSIS __ab__ [[ __-k__ ] [[ __-e__ ] [[ __-q__ ] [[ __-S__ ] [[ __-i__ ] [[ __-s__ ] [[ __-n__ ''requests'' ] [[ __-t__ ''timelimit'' ] [[ __-c__ ''concurrency'' ] [[ __-p__ ''POST file'' ] [[ __-A__ ''Authenticate username:password'' ] [[ __-X__ ''proxy [[ :port ]'' ] [[ __-P__ ''Proxy Authenticate username:password'' ] [[ __-H__ ''Custom header'' ] [[ __-C__ ''Cookie name=value'' ] [[ __-T__ ''content-type'' ] [[ __-v__ ''verbosity'' ] ] [[ __-w__ ''output HTML'' ] ] [[ __-g__ ''output GNUPLOT'' ] ] [[ __-e__ ''output CSV'' ] ] [[ __-x__ '''' ] ] [[ __-y__ '''' ] ] [[ __-z__ '' '' ] ''[[http[[s]://]hostname[[:port]/path'' __ab__ [[ __-V__ ] [[ __-h__ ] !!DESCRIPTION __ab__ is a tool for benchmarking the performance of your Apache !HyperText Transfer Protocol (HTTP) server. It does this by giving you an indication of how many requests per second your Apache installation can serve. !!OPTIONS __-k__ Enable the HTTP !KeepAlive feature; that is, perform multiple requests within one HTTP session. Default is no !KeepAlive. __-d__ Do not display the __ __-S__ Do not display the median and standard deviation values, nor display the warning/error messages when the average and median are more than one or two times the standard deviation apart. And default to the min/avg/max values. (legacy support). __-s__ When compiled in (bb -h will show you) use the SSL protected __https__ rather than the __http__ protocol. This feature is experimental and __very__ rudimentary. You propably do not want to use it. __-k__ Enable the HTTP !KeepAlive feature; that is, perform multiple requests within one HTTP session. Default is no !KeepAlive. __-i__ Use an HTTP 'HEAD' instead of the GET method. Cannot be mixed with POST. __-n__ ''requests'' The number of requests to perform for the benchmarking session. The default is to perform just one single request, which will not give representative benchmarking results. __-t__ ''timelimit'' The number of seconds to spend benchmarking. Using this option automatically set the number of requests for the benchmarking session to 50000. Use this to benchmark the server for a fixed period of time. By default, there is no timelimit. __-c__ ''concurrency'' The number of simultaneous requests to perform. The default is to perform one HTTP request at at time, that is, no concurrency. __-p__ ''POST file'' A file containing data that the program will send to the Apache server in any HTTP POST requests. __-A__ ''Authorization username:password'' Supply Basic Authentication credentials to the server. The username and password are separated by a single ':', and sent as uuencoded data. The string is sent regardless of whether the server needs it; that is, has sent a 401 Authentication needed. __-X__ ''proxy[[:port]'' Route all requests through the proxy (at optional port). __-P__ ''Proxy-Authorization username:password'' Supply Basic Authentication credentials to a proxy en-route. The username and password are separated by a single ':', and sent as uuencoded data. The string is sent regardless of whether the proxy needs it; that is, has sent a 407 Proxy authentication needed. __-C__ ''Cookie name=value'' Add a 'Cookie:' line to the request. The argument is typically a 'name=value' pair. This option may be repeated. __-p__ ''Header string'' Append extra headers to the request. The argument is typically in the form of a valid header line, usually a colon separated field value pair, for example, 'Accept-Encoding: zip/zop;8bit'. __-T__ ''content-type'' The content-type header to use for POST data. __-g__ ''gnuplot file'' Write all measured values out as a 'gnuplot' or TSV (Tab separate values) file. This file can easily be imported into packages like Gnuplot, IDL, Mathematica, Igor or even Excell. The labels are on the first line of the file. __-q__ When processing more than 150 requsts; __ab__ outputs a progress count on __stderr__ every 10% or 100 requests or so. The __-q__ flag qill suppress these messages. __-e__ ''CSV file'' Write a Comma separated value (CSV) file which contains for each percentage (from 1% to 100%) the time (in milli seconds) it took to serve that percentage of the requests. This is usually more usefull than the 'gnuplot' file; as the results are already __-v__ Sets the verbosity level. Level 4 and above prints information on headers, level 3 and above prints response codes (for example, 404, 200), and level 2 and above prints warnings and informational messages. __-w__ Print out results in HTML tables. The default table is two columns wide, with a white background. __-x__ ''attributes'' The string to use as attributes for here__ __ __-y__ ''attributes'' The string to use as attributes for __-z__ ''attributes'' The string to use as attributes for __-V__ Display the version number and exit. __-h__ Display usage information. !!BUGS There are various statically declared buffers of fixed length. Combined with inefficient parsing of the command line arguments, the response headers from the server, and other external inputs, these buffers might overflow. __Ab__ does not implement HTTP/1.x fully; instead, it only accepts some 'expected' forms of responses. The rather heavy use of __strstr(3)__ by the program may skew performance results, since it uses significant CPU resources. Make sure that performance limits are not hit by __ab__ before your server's limit is reached. The HTML output is not as complete as the text output. Up to version 1.3d __ab__ has propably reported values way to low for most measurements; as a single timeout (which is usually in the order of seconds) will shift several thousands of milli-second responses by a considerable factor. This was further componded by a serious interger overrun which would for realistic run's (i.e. those longer than a few minutes) produce believable but totally bogus results. Thanks to Sander Temme __ !!SEE ALSO __apache(8)__ ----
One page links to
ab(8)
:
Man8a
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.