Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Save the Children

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 112 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

ab



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 <table> attributes ] ] [ -y <tr>
       attributes ] ] [ -z <td>  attributes  ]  [http[s]://]host­
       name[: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 ses­
                   sion. Default is no KeepAlive.

       -d          Do not display the "percentage  served  within
                   XX [ms] table". (legacy support).

       -S          Do  not display the median and standard devia­
                   tion 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 pro­
                   tocol. 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 ses­
                   sion. 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 per­
                   form just one single request, which  will  not
                   give representative benchmarking results.

       -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 sepa­
                   rated 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  uuen­
                   coded  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 argu­
                   ment is typically a  'name=value'  pair.  This
                   option may be repeated.

       -p Header string
                   Append extra headers to the request. The argu­
                   ment 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 Gnu­
                   ally 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  back­
                   ground.

       -x attributes
                   The  string  to use as attributes for <table>.
                   Attributes are inserted <table here >

       -y attributes
                   The string to use as attributes for <tr>.

       -z attributes
                   The string to use as attributes for <td>.

       -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 thou­
       sands 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.
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds