home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 May / Gamestar_62_2004-05_dvd.iso / Programy / apache_2.0.48-win32-x86-no_ssl.msi / Data.Cab / F252876_ab.xml < prev    next >
Extensible Markup Language  |  2003-04-29  |  8KB  |  175 lines

  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
  3. <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
  4. <manualpage metafile="ab.xml.meta">
  5. <parentdocument href="./">Programs</parentdocument>
  6.  
  7. <title>ab - Apache HTTP server benchmarking tool</title>
  8.  
  9. <summary>
  10.     <p><code>ab</code> is a tool for benchmarking your Apache Hypertext
  11.     Transfer Protocol (HTTP) server. It is designed to give you an impression
  12.     of how your current Apache installation performs. This especially shows
  13.     you how many requests per second your Apache installation is capable of
  14.     serving.</p>
  15. </summary>
  16. <seealso><a href="httpd.html">httpd</a></seealso>
  17.  
  18. <section id="synopsis"><title>Synopsis</title>
  19.     <p><code><strong>ab</strong>
  20.     [ -<strong>A</strong> <var>auth-username</var>:<var>password</var> ]
  21.     [ -<strong>c</strong> <var>concurrency</var> ]
  22.     [ -<strong>C</strong> <var>cookie-name</var>=<var>value</var> ]
  23.     [ -<strong>d</strong> ]
  24.     [ -<strong>e</strong> <var>csv-file</var> ]
  25.     [ -<strong>g</strong> <var>gnuplot-file</var> ]
  26.     [ -<strong>h</strong> ]
  27.     [ -<strong>H</strong> <var>custom-header</var> ]
  28.     [ -<strong>i</strong> ]
  29.     [ -<strong>k</strong> ]
  30.     [ -<strong>n</strong> <var>requests</var> ]
  31.     [ -<strong>p</strong> <var>POST-file</var> ]
  32.     [ -<strong>P</strong> <var>proxy-auth-username</var>:<var>password</var> ]
  33.     [ -<strong>q</strong> ]
  34.     [ -<strong>s</strong> ]
  35.     [ -<strong>S</strong> ]
  36.     [ -<strong>t</strong> <var>timelimit</var> ]
  37.     [ -<strong>T</strong> <var>content-type</var> ]
  38.     [ -<strong>v</strong> <var>verbosity</var>]
  39.     [ -<strong>V</strong> ]
  40.     [ -<strong>w</strong> ]
  41.     [ -<strong>x</strong> <var><table>-attributes</var> ]
  42.     [ -<strong>X</strong> <var>proxy</var>[:<var>port</var>] ]
  43.     [ -<strong>y</strong> <var><tr>-attributes</var> ]
  44.     [ -<strong>z</strong> <var><td>-attributes</var> ]
  45.     [http://]<var>hostname</var>[:<var>port</var>]/<var>path</var></code></p>
  46. </section>
  47.  
  48. <section id="options"><title>Options</title>
  49.     <dl>
  50.     <dt><code>-A <var>auth-username</var>:<var>password</var></code></dt>
  51.     <dd>Supply BASIC Authentication credentials to the server. The username and
  52.     password are separated by a single <code>:</code> and sent on the wire
  53.     base64 encoded. The string is sent regardless of whether the server needs
  54.     it (<em>i.e.</em>, has sent an 401  authentication needed).</dd>
  55.  
  56.     <dt><code>-c <var>concurrency</var></code></dt>
  57.     <dd>Number of multiple requests to perform at a time. Default is one
  58.     request at a time.</dd>
  59.  
  60.     <dt><code>-C <var>cookie-name</var>=<var>value</var></code></dt>
  61.     <dd>Add a <code>Cookie:</code> line to the request. The  argument  is
  62.     typically in the form of a <code><var>name</var>=<var>value</var></code>
  63.     pair. This field is repeatable.</dd>
  64.  
  65.     <dt><code>-d</code></dt>
  66.     <dd>Do not display the "percentage served within XX [ms] table". (legacy
  67.     support).</dd>
  68.  
  69.     <dt><code>-e <var>csv-file</var></code></dt>
  70.     <dd>Write a Comma separated value (CSV) file which contains for each
  71.     percentage (from 1% to 100%) the time (in milli seconds) it took to serve
  72.     that percentage of the requests. This is usually more useful than the
  73.     'gnuplot' file; as the results are already 'binned'.</dd>
  74.  
  75.     <dt><code>-g <var>gnuplot-file</var></code></dt>
  76.     <dd>Write all measured values out as a 'gnuplot' or TSV (Tab separate
  77.     values) file. This file can easily be imported into packages like Gnuplot,
  78.     IDL, Mathematica, Igor or even Excell. The labels are on the first line of
  79.     the file. </dd>
  80.  
  81.     <dt><code>-h</code></dt>
  82.     <dd>Display usage information.</dd>
  83.  
  84.     <dt><code>-H <var>custom-header</var></code></dt>
  85.     <dd>Append extra headers to the request.  The  argument  is typically in
  86.     the form of a valid header line, containing a colon-separated field-value
  87.     pair (<em>i.e.</em>, <code>"Accept-Encoding: zip/zop;8bit"</code>).</dd>
  88.  
  89.     <dt><code>-i</code></dt>
  90.     <dd>Do <code>HEAD</code> requests instead of <code>GET</code>.</dd>
  91.  
  92.     <dt><code>-k</code></dt>
  93.     <dd>Enable the HTTP KeepAlive feature, <em>i.e.</em>, perform multiple
  94.     requests within one HTTP session. Default is no KeepAlive.</dd>
  95.  
  96.     <dt><code>-n <var>requests</var></code></dt>
  97.     <dd>Number of requests to perform for the benchmarking session. The default
  98.     is to just perform a single request which usually leads to
  99.     non-representative benchmarking results.</dd>
  100.  
  101.     <dt><code>-p <var>POST-file</var></code></dt>
  102.     <dd>File containing data to POST.</dd>
  103.  
  104.     <dt><code>-P <var>proxy-auth-username</var>:<var>password</var></code></dt>
  105.     <dd>Supply BASIC Authentication credentials to a proxy en-route. The
  106.     username and password are separated by a single <code>:</code> and sent on 
  107.     the  wire base64 encoded. The string is sent regardless of whether the
  108.     proxy needs it (<em>i.e.</em>, has  sent an 407 proxy authentication
  109.     needed).</dd>
  110.  
  111.     <dt><code>-q</code></dt>
  112.     <dd>When processing more than 150 requests, <code>ab</code> outputs a
  113.     progress count on <code>stderr</code> every 10% or 100 requests or so. The 
  114.     <code>-q</code> flag will suppress these messages.</dd>
  115.  
  116.     <dt><code>-s</code></dt>
  117.     <dd>When compiled in (<code>ab -h</code> will show you) use the SSL
  118.     protected <code>https</code> rather than the <code>http</code> protocol.
  119.     This feature is experimental and <em>very</em> rudimentary. You probably
  120.     do not want to use it.</dd>
  121.  
  122.     <dt><code>-S</code></dt>
  123.     <dd>Do not display the median and standard deviation values, nor display
  124.     the warning/error messages when the average and median are more than
  125.     one or two times the standard deviation apart. And default to the 
  126.     min/avg/max values. (legacy support).</dd>
  127.  
  128.     <dt><code>-t <var>timelimit</var></code></dt>
  129.     <dd>Maximum number of seconds to  spend  for  benchmarking. This implies a
  130.     <code>-n 50000</code> internally. Use this to benchmark the server within a
  131.     fixed total amount of time. Per default there is no timelimit.</dd>
  132.  
  133.     <dt><code>-T <var>content-type</var></code></dt>
  134.     <dd>Content-type header to use for POST data.</dd>
  135.  
  136.     <dt><code>-v <var>verbosity</var></code></dt>
  137.     <dd>Set verbosity level - <code>4</code> and above prints information on
  138.     headers, <code>3</code> and above prints response codes (404, 200, etc.),
  139.     <code>2</code> and above prints warnings and info.</dd>
  140.  
  141.     <dt><code>-V</code></dt>
  142.     <dd>Display version number and exit.</dd>
  143.  
  144.     <dt><code>-w</code></dt>
  145.     <dd>Print out results in HTML tables. Default table is two columns wide,
  146.     with a white background.</dd>
  147.  
  148.     <dt><code>-x <var><table>-attributes</var></code></dt>
  149.     <dd>String to use as attributes for <code><table></code>. Attributes
  150.     are inserted <code><table <var>here</var> ></code>.</dd>
  151.  
  152.     <dt><code>-X <var>proxy</var>[:<var>port</var>]</code></dt>
  153.     <dd>Use a proxy server for the requests.</dd>
  154.  
  155.     <dt><code>-y <var><tr>-attributes</var></code></dt>
  156.     <dd>String to use as attributes for <code><tr></code>.</dd>
  157.  
  158.     <dt><code>-z <var><td>-attributes</var></code></dt>
  159.     <dd>String to use as attributes for <code><td></code>.</dd>
  160.     </dl>
  161. </section>
  162.  
  163. <section id="bugs"><title>Bugs</title>
  164.     <p>There are various statically declared buffers of fixed length. Combined
  165.     with the lazy parsing of the command line arguments, the response headers
  166.     from the server and other external inputs, this might bite you.</p>
  167.  
  168.     <p>It does not implement HTTP/1.x fully; only accepts some 'expected' forms
  169.     of responses. The rather heavy use of <code>strstr(3)</code> shows up top
  170.     in profile, which might indicate a performance problem; <em>i.e.</em>, you
  171.     would measure the <code>ab</code> performance rather than the server's.</p>
  172. </section>
  173.  
  174. </manualpage>
  175.