]> granicus.if.org Git - apache/commitdiff
bring the ab manpage up to date.
authorAndré Malo <nd@apache.org>
Tue, 29 Apr 2003 20:08:37 +0000 (20:08 +0000)
committerAndré Malo <nd@apache.org>
Tue, 29 Apr 2003 20:08:37 +0000 (20:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99646 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/programs/ab.html [deleted file]
docs/manual/programs/ab.xml [new file with mode: 0644]
docs/manual/programs/ab.xml.meta [new file with mode: 0644]

diff --git a/docs/manual/programs/ab.html b/docs/manual/programs/ab.html
deleted file mode 100644 (file)
index c9e8250..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta name="generator" content="HTML Tidy, see www.w3.org" />
-
-    <title>Manual Page: ab - Apache HTTP Server</title>
-  </head>
-
-  <body bgcolor="#ffffff" text="#000000" link="#0000ff"
-  vlink="#000080" alink="#ff0000">
-        <div align="center">
-      <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" /> 
-
-      <h3>Apache HTTP Server Version 2.1</h3>
-    </div>
-
-
-
-    <h1 align="center">Manual Page: ab</h1>
-    <!-- This document was autogenerated from the man page -->
-<pre>
-<strong>NAME</strong>
-     ab - Apache HTTP server benchmarking tool
-
-<strong>SYNOPSIS</strong>
-     <strong>ab</strong> [ -<strong>k</strong> ] [ -<strong>n</strong> <em>requests</em> ] [ -<strong>t</strong> <em>timelimit</em> ] [ -<strong>c</strong>  <em>concurrency</em>
-     ] [ -<strong>p</strong> <em>POST file</em> ] [ -<strong>A</strong> <em>Authentication username</em>:<em>password</em> ] [
-     -<strong>P</strong> <em>Proxy Authentication  username</em>:<em>password</em>  ]  [  -<strong>H</strong>  <em>Custom</em>
-     <em>header</em>  ]  [ -<strong>C</strong> <em>Cookie name</em>=<em>value</em> ] [ -<strong>T</strong> <em>content</em>-<em>type</em> ] [ -<strong>v</strong>
-     <em>verbosity</em> ] ] [ -<strong>w</strong> <em>output HTML</em> ] ] [ -<strong>x</strong> &lt;<em>table</em>&gt; <em>attributes</em> ]
-     ]  [  -<strong>y</strong>  &lt;<em>tr</em>&gt;  <em>attributes</em>  ]  ]  [  -<strong>z</strong>  &lt;<em>td</em>&gt;  <em>attributes</em>  ]
-     [<em>http</em>://]<em>hostname</em>[:<em>port</em>]/<em>path</em>
-
-     <strong>ab</strong> [ -<strong>V</strong> ] [ -<strong>h</strong> ]
-
-<strong>DESCRIPTION</strong>
-     <strong>ab</strong> is a tool for benchmarking your Apache HyperText Transfer
-     Protocol  (HTTP)  server.  It  is  designed  to  give you an
-     impression of how your current Apache installation performs.
-     This  especially shows you how many requests per second your
-     Apache installation is capable of serving.
-
-<strong>OPTIONS</strong>
-     -<strong>k   </strong>       Enable the HTTP KeepAlive feature, i.e., perform
-                 multiple   requests  within  one  HTTP  session.
-                 Default is no KeepAlive.
-
-     -<strong>n</strong> <em>requests</em> Number of requests to perform for the benchmark-
-                 ing  session.   The default is to just perform a
-                 single  request  which  usually  leads  to  non-
-                 representative benchmarking results.
-
-     -<strong>t</strong> <em>timelimit</em>
-                 Maximum number of seconds to  spend  for  bench-
-                 marking. This implies a -<strong>n 50000</strong> internally. Use
-                 this to benchmark  the  server  within  a  fixed
-                 total  amount  of time.  Per default there is no
-                 timelimit.
-
-     -<strong>c</strong> <em>concurrency</em>
-                 Number of multiple  requests  to  perform  at  a
-                 time. Default is one request at a time.
-
-     -<strong>p</strong> <em>POST file</em>
-                 File containing data to POST.
-
-     -<strong>A</strong> <em>Authentication username</em>:<em>password</em>
-                 Supply BASIC Authentication credentials  to  the
-                 server.  The username and password are separated
-                 by a single ':' and sent on the wire  uuencoded.
-                 The  string  is  sent  regardless of whether the
-                 server needs it; (i.e., has sent an 401  authen-
-                 tication needed).
-
-     -<strong>p</strong> <em>Proxy</em>-<em>Authentication username</em>:<em>password</em>
-                 Supply BASIC  Authentication  credentials  to  a
-                 proxy  en-route.  The  username and password are
-                 separated by a single ':' and sent on  the  wire
-                 uuencoded.   The  string  is  sent regardless of
-                 whether the proxy needs it; (i.e., has  sent  an
-                 407 proxy authentication needed).
-
-     -<strong>C</strong> <em>Cookie name</em>=<em>value</em>
-                 Add a 'Cookie:' line to the request.  The  argu-
-                 ment  is typically in the form of a 'name=value'
-                 pair. This field is repeatable.
-
-     -<strong>p</strong> <em>Header string</em>
-                 Append extra headers to the request.  The  argu-
-                 ment  is typically in the form of a valid header
-                 line, containing a  colon-separated  field-value
-                 pair.  (i.e., 'Accept-Encoding: zip/zop;8bit').
-
-     -<strong>T</strong> <em>content</em>-<em>type</em>
-                 Content-type header to use for POST data.
-
-     -<strong>v   </strong>       Set verbosity level - 4 and above prints  infor-
-                 mation  on  headers, 3 and above prints response
-                 codes (404, 200, etc.), 2 and above prints warn-
-                 ings and info.
-
-     -<strong>w   </strong>       Print out results in HTML tables.  Default table
-                 is two columns wide, with a white background.
-
-     -<strong>x</strong> <em>attributes</em>
-                 String to use as attributes for &lt;table&gt;.  Attri-
-                 butes are inserted &lt;table <strong>here</strong> &gt;
-
-     -<strong>y</strong> <em>attributes</em>
-                 String to use as attributes for &lt;tr&gt;.
-
-     -<strong>z</strong> <em>attributes</em>
-                 String to use as attributes for &lt;td&gt;.
-
-     -<strong>V   </strong>       Display version number and exit.
-
-     -<strong>h   </strong>       Display usage information.
-
-<strong>BUGS</strong>
-     There are  various  statically  declared  buffers  of  fixed
-     length.  Combined  with the lazy parsing of the command line
-     arguments, the response headers from the  server  and  other
-     external inputs, this might bite you.
-
-     It does not implement  HTTP/1.x  fully;  only  accepts  some
-     'expected'  forms  of  responses.  The  rather  heavy use of
-     <strong>strstr(3)</strong> shows up top in profile, which  might  indicate  a
-     performance  problem; i.e., you would measure the <strong>ab</strong> perfor-
-     mance rather than the server's.
-
-<strong>SEE ALSO</strong>
-     <strong>httpd(8)</strong>
-
-</pre>
-        <hr />
-
-    <h3 align="center">Apache HTTP Server Version 2.1</h3>
-    <a href="./"><img src="../images/index.gif" alt="Index" /></a>
-    <a href="../"><img src="../images/home.gif" alt="Home" /></a>
-
-
-  </body>
-</html>
-
diff --git a/docs/manual/programs/ab.xml b/docs/manual/programs/ab.xml
new file mode 100644 (file)
index 0000000..4eba2ae
--- /dev/null
@@ -0,0 +1,174 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
+<?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
+<manualpage metafile="ab.xml.meta">
+<parentdocument href="./">Programs</parentdocument>
+
+<title>ab - Apache HTTP server benchmarking tool</title>
+
+<summary>
+    <p><code>ab</code> is a tool for benchmarking your Apache Hypertext
+    Transfer Protocol (HTTP) server. It is designed to give you an impression
+    of how your current Apache installation performs. This especially shows
+    you how many requests per second your Apache installation is capable of
+    serving.</p>
+</summary>
+<seealso><a href="httpd.html">httpd</a></seealso>
+
+<section id="synopsis"><title>Synopsis</title>
+    <p><code><strong>ab</strong>
+    [ -<strong>A</strong> <var>auth-username</var>:<var>password</var> ]
+    [ -<strong>c</strong> <var>concurrency</var> ]
+    [ -<strong>C</strong> <var>cookie-name</var>=<var>value</var> ]
+    [ -<strong>d</strong> ]
+    [ -<strong>e</strong> <var>csv-file</var> ]
+    [ -<strong>g</strong> <var>gnuplot-file</var> ]
+    [ -<strong>h</strong> ]
+    [ -<strong>H</strong> <var>custom-header</var> ]
+    [ -<strong>i</strong> ]
+    [ -<strong>k</strong> ]
+    [ -<strong>n</strong> <var>requests</var> ]
+    [ -<strong>p</strong> <var>POST-file</var> ]
+    [ -<strong>P</strong> <var>proxy-auth-username</var>:<var>password</var> ]
+    [ -<strong>q</strong> ]
+    [ -<strong>s</strong> ]
+    [ -<strong>S</strong> ]
+    [ -<strong>t</strong> <var>timelimit</var> ]
+    [ -<strong>T</strong> <var>content-type</var> ]
+    [ -<strong>v</strong> <var>verbosity</var>]
+    [ -<strong>V</strong> ]
+    [ -<strong>w</strong> ]
+    [ -<strong>x</strong> <var>&lt;table&gt;-attributes</var> ]
+    [ -<strong>X</strong> <var>proxy</var>[:<var>port</var>] ]
+    [ -<strong>y</strong> <var>&lt;tr&gt;-attributes</var> ]
+    [ -<strong>z</strong> <var>&lt;td&gt;-attributes</var> ]
+    [http://]<var>hostname</var>[:<var>port</var>]/<var>path</var></code></p>
+</section>
+
+<section id="options"><title>Options</title>
+    <dl>
+    <dt><code>-A <var>auth-username</var>:<var>password</var></code></dt>
+    <dd>Supply BASIC Authentication credentials to the server. The username and
+    password are separated by a single <code>:</code> and sent on the wire
+    base64 encoded. The string is sent regardless of whether the server needs
+    it (<em>i.e.</em>, has sent an 401  authentication needed).</dd>
+
+    <dt><code>-c <var>concurrency</var></code></dt>
+    <dd>Number of multiple requests to perform at a time. Default is one
+    request at a time.</dd>
+
+    <dt><code>-C <var>cookie-name</var>=<var>value</var></code></dt>
+    <dd>Add a <code>Cookie:</code> line to the request. The  argument  is
+    typically in the form of a <code><var>name</var>=<var>value</var></code>
+    pair. This field is repeatable.</dd>
+
+    <dt><code>-d</code></dt>
+    <dd>Do not display the "percentage served within XX [ms] table". (legacy
+    support).</dd>
+
+    <dt><code>-e <var>csv-file</var></code></dt>
+    <dd>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 useful than the
+    'gnuplot' file; as the results are already 'binned'.</dd>
+
+    <dt><code>-g <var>gnuplot-file</var></code></dt>
+    <dd>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. </dd>
+
+    <dt><code>-h</code></dt>
+    <dd>Display usage information.</dd>
+
+    <dt><code>-H <var>custom-header</var></code></dt>
+    <dd>Append extra headers to the request.  The  argument  is typically in
+    the form of a valid header line, containing a colon-separated field-value
+    pair (<em>i.e.</em>, <code>"Accept-Encoding: zip/zop;8bit"</code>).</dd>
+
+    <dt><code>-i</code></dt>
+    <dd>Do <code>HEAD</code> requests instead of <code>GET</code>.</dd>
+
+    <dt><code>-k</code></dt>
+    <dd>Enable the HTTP KeepAlive feature, <em>i.e.</em>, perform multiple
+    requests within one HTTP session. Default is no KeepAlive.</dd>
+
+    <dt><code>-n <var>requests</var></code></dt>
+    <dd>Number of requests to perform for the benchmarking session. The default
+    is to just perform a single request which usually leads to
+    non-representative benchmarking results.</dd>
+
+    <dt><code>-p <var>POST-file</var></code></dt>
+    <dd>File containing data to POST.</dd>
+
+    <dt><code>-P <var>proxy-auth-username</var>:<var>password</var></code></dt>
+    <dd>Supply BASIC Authentication credentials to a proxy en-route. The
+    username and password are separated by a single <code>:</code> and sent on 
+    the  wire base64 encoded. The string is sent regardless of whether the
+    proxy needs it (<em>i.e.</em>, has  sent an 407 proxy authentication
+    needed).</dd>
+
+    <dt><code>-q</code></dt>
+    <dd>When processing more than 150 requests, <code>ab</code> outputs a
+    progress count on <code>stderr</code> every 10% or 100 requests or so. The 
+    <code>-q</code> flag will suppress these messages.</dd>
+
+    <dt><code>-s</code></dt>
+    <dd>When compiled in (<code>ab -h</code> will show you) use the SSL
+    protected <code>https</code> rather than the <code>http</code> protocol.
+    This feature is experimental and <em>very</em> rudimentary. You probably
+    do not want to use it.</dd>
+
+    <dt><code>-S</code></dt>
+    <dd>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).</dd>
+
+    <dt><code>-t <var>timelimit</var></code></dt>
+    <dd>Maximum number of seconds to  spend  for  benchmarking. This implies a
+    <code>-n 50000</code> internally. Use this to benchmark the server within a
+    fixed total amount of time. Per default there is no timelimit.</dd>
+
+    <dt><code>-T <var>content-type</var></code></dt>
+    <dd>Content-type header to use for POST data.</dd>
+
+    <dt><code>-v <var>verbosity</var></code></dt>
+    <dd>Set verbosity level - <code>4</code> and above prints information on
+    headers, <code>3</code> and above prints response codes (404, 200, etc.),
+    <code>2</code> and above prints warnings and info.</dd>
+
+    <dt><code>-V</code></dt>
+    <dd>Display version number and exit.</dd>
+
+    <dt><code>-w</code></dt>
+    <dd>Print out results in HTML tables. Default table is two columns wide,
+    with a white background.</dd>
+
+    <dt><code>-x <var>&lt;table&gt;-attributes</var></code></dt>
+    <dd>String to use as attributes for <code>&lt;table&gt;</code>. Attributes
+    are inserted <code>&lt;table <var>here</var> &gt;</code>.</dd>
+
+    <dt><code>-X <var>proxy</var>[:<var>port</var>]</code></dt>
+    <dd>Use a proxy server for the requests.</dd>
+
+    <dt><code>-y <var>&lt;tr&gt;-attributes</var></code></dt>
+    <dd>String to use as attributes for <code>&lt;tr&gt;</code>.</dd>
+
+    <dt><code>-z <var>&lt;td&gt;-attributes</var></code></dt>
+    <dd>String to use as attributes for <code>&lt;td&gt;</code>.</dd>
+    </dl>
+</section>
+
+<section id="bugs"><title>Bugs</title>
+    <p>There are various statically declared buffers of fixed length. Combined
+    with the lazy parsing of the command line arguments, the response headers
+    from the server and other external inputs, this might bite you.</p>
+
+    <p>It does not implement HTTP/1.x fully; only accepts some 'expected' forms
+    of responses. The rather heavy use of <code>strstr(3)</code> shows up top
+    in profile, which might indicate a performance problem; <em>i.e.</em>, you
+    would measure the <code>ab</code> performance rather than the server's.</p>
+</section>
+
+</manualpage>
diff --git a/docs/manual/programs/ab.xml.meta b/docs/manual/programs/ab.xml.meta
new file mode 100644 (file)
index 0000000..4b50e3c
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<metafile>
+  <basename>ab</basename>
+  <path>/programs/</path>
+  <relpath>..</relpath>
+
+  <variants>
+    <variant>en</variant>
+  </variants>
+</metafile>