Apache HTTP Server Performance Testing Tool

Source: Internet
Author: User
Tags auth base64 response code time limit

AB isApacheHypertext Transfer Protocol (HTTP) performance testing tool. Its design intent is to depict the currentInstallThe execution performance of Apache is mainly to show how many requests can be processed per second by your installed Apache.

Summary

AB [-A auth-username: password] [-c concurrency] [-C cookie-name = value] [-d] [-e csv-file] [-g gnuplot-file] [-h] [- H custom-header] [-I] [-k] [-n requests] [-p POST-file] [-P proxy-auth-username: password] [-q] [-s] [-S] [-t timelimit] [-T content-type] [-v verbosity] [-V] [-w] [-x <table>-attributes] [-X proxy [: port] [-y <tr>-attributes] [-z <td>-attributes] [http: //] hostname [: port]/path


Option

-A auth-username: password
Provides BASIC authentication trust to the server. The user name and password are separated by one and sent in base64 encoding format. Whether or not the server needs (that is, whether or not the 401 authentication request is sentCode), This string will be sent.
-C concurrency
The number of requests generated at a time. The default value is one at a time.
-C cookie-name = value
Append a Cookie to the request: Row. The typical form is a parameter pair of name = value. This parameter can be repeated.
-D
Messages for "percentage served within XX [MS] table" are not displayed (supported for previous versions ).
-E csv-file
Generate a comma-separated (CSV) file that contains the time (in a subtle unit) required to process each percentage of requests (from 1% to 100%. This format has been "binary", so it is more useful than the 'gnupload' format.
-G gnuplot-file
Write all test results to a 'gnupload' or TSV (separated by tabs) file. This file can be easily imported to Gnuplot, IDL, Mathematica, Igor or even Excel. The title of the first behavior.
-H
Show usageMethod.
-H custom-header
Append additional header information to the request. A typical form of this parameter is a valid header information line, which contains pairs of fields and values separated by colons (for example, "Accept-Encoding: zip/zop; 8bit ").
-I
Execute the HEAD request instead of GET.
-K
Enable the HTTP KeepAlive function, that is, to execute multiple requests in an HTTP session. By default, KeepAlive is not enabled.
-N requests
The number of requests executed in the test session. By default, only one request is executed, but the result is usually not representative.
-P POST-file
The file that contains the data to be POST.
-P proxy-auth-username: password
Provides BASIC authentication trust for a transit proxy. The user name and password are separated by one and sent in base64 encoding format. This string is sent regardless of whether the server needs it (that is, whether the 401 authentication request code is sent.
-Q
If the number of requests processed exceeds 150, AB will output a progress count in stderr every time it processes about 10% or 100 requests. This q mark can suppress this information.
-S
It is used for compiling (AB-h displays relevant information) using SSL protected https instead of http. This function is experimental and simple. It is best not to use it.
-S
The mean value and standard deviation value are not displayed, and no warning or error message is displayed when the mean value and the mean value are one to two times the standard deviation value. By default, the minimum, average, maximum, and other values are displayed. (To support previous versions ).
-T timelimit
The maximum number of seconds for testing. The implicit value is-n 50000. It limits the server test to a fixed total time. By default, there is no time limit.
-T content-type
The Content-type header used by the POST data.
-V verbosity
Set the details of the display information-4 or greater. The header information is displayed. 3 or a greater value can display the response code (404,200, etc.). 2 or a greater value can display warnings and other information.
-V
Show the version number and exit.
-W
ToHTMLTable format output result. By default, it is a table of the width of the two columns of the white background.
-X <table>-attributes
Set the string of the <table> attribute. This attribute is filled in <table here>.
-X proxy [: port]
Use a proxy server for requests.
-Y <tr>-attributes
Set the string of the <tr> attribute.
-Z <td>-attributes
Set the string of the <td> attribute.

Defects
The program has various static declared fixed-length buffers. In addition, parsing command line parameters, server response headers, and other external inputs is also simple, which may have adverse consequences.

It does not fully implement HTTP/1.x; only accept some 'preview' response formats. Frequent use of strstr (3) may cause performance problems, that is, you may be testing the performance of AB rather than the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.