Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Child Fund

 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, 128 guest(s) and 0 member(s) that are online.

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

  

ab2




SYNOPSIS

       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:pass­
       word ] [ -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://]host­
       name[:port]/path


SUMMARY

       ab is a tool for benchmarking your Apache Hypertext Trans­
       fer Protocol (HTTP) server. It is designed to give you  an
       impression  of  how  your current Apache installation per­
       forms. This especially shows you  how  many  requests  per
       second your Apache installation is capable of serving.


OPTIONS

              -A auth-username:password
                     Supply  BASIC  Authentication credentials to
                     the server. The username  and  password  are
                     separated by a single : and sent on the wire
                     base64 encoded. The string is  sent  regard­
                     less  of  whether the server needs it (i.e.,
                     has sent an 401 authentication needed).

              -c concurrency
                     Number of multiple requests to perform at  a
                     time. Default is one request at a time.

              -C cookie-name=value
                     Add a Cookie: line to the request. The argu­
                     ment  is  typically  in  the   form   of   a
                     name=value pair. This field is repeatable.

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

              -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 useful than  the  'gnu­
                     plot'  file;  as  the  results  are  already
                     'binned'.
                     header  line,  containing  a colon-separated
                     field-value  pair  (i.e.,  "Accept-Encoding:
                     zip/zop;8bit").

              -i     Do HEAD requests instead of GET.

              -k     Enable  the  HTTP  KeepAlive  feature, i.e.,
                     perform multiple requests  within  one  HTTP
                     session. Default is no KeepAlive.

              -n requests
                     Number of requests to perform for the bench­
                     marking session. The default is to just per­
                     form a single request which usually leads to
                     non-representative benchmarking results.

              -p POST-file
                     File containing data to POST.

              -P proxy-auth-username:password
                     Supply BASIC Authentication credentials to a
                     proxy  en-route.  The  username and password
                     are separated by a single : and sent on  the
                     wire  base64  encoded.  The  string  is sent
                     regardless of whether  the  proxy  needs  it
                     (i.e.,  has sent an 407 proxy authentication
                     needed).

              -q     When processing more than 150  requests,  ab
                     outputs a progress count on stderr every 10%
                     or 100 requests or so. The -q flag will sup­
                     press these messages.

              -s     When  compiled  in (ab -h will show you) use
                     the SSL protected https rather than the http
                     protocol.  This  feature is experimental and
                     very rudimentary. You probably do  not  want
                     to use it.

              -S     Do not display the median and standard devi­
                     ation 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).

              -t timelimit
                     Maximum  number  of  seconds  to  spend  for
                     benchmarking. This implies a -n 50000 inter­
                     nally. Use  this  to  benchmark  the  server
                     within  a  fixed  total  amount of time. Per
                     default there is no timelimit.
                     background.

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

              -X proxy[:port]
                     Use a proxy server for the requests.

              -y <tr>-attributes
                     String to use as attributes for <tr>.

              -z <td>-attributes
                     String to use as attributes for <td>.


BUGS

       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
       strstr(3)  shows up top in profile, which might indicate a
       performance problem; i.e., you would measure the  ab  per­
       formance rather than the server's.

Apache HTTP Server          2003-04-29                      AB(8)
  




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?
The Linux Tutorial can use your help.


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.09 Seconds