Apache web server benchmark tool ab

apache logoab is a tool for benchmarking your Apache HTTP server. It is designed to give an impression of how Apache installation performs. This especially shows how many requests per second certain Apache installation is capable to serve.

Manual of ab is rather extensive, so here is just useful example of it’s usage:

ab -n 100 ubuntu.com/

will send 100 requests to Apache server of Ubuntu’s web site. Here it’s output:

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking ubuntu.com (be patient).....done

Server Software: Apache/2.2.3
Server Hostname: ubuntu.com
Server Port: 80

Document Path: /
Document Length: 281 bytes

Concurrency Level: 1
Time taken for tests: 22.87165 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100

Total transferred: 49000 bytes
HTML transferred: 28100 bytes
Requests per second: 4.53 [#/sec] (mean)
Time per request: 220.872 [ms] (mean)
Time per request: 220.872 [ms] (mean, across all concurrent requests)
Transfer rate: 2.13 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 88 100 5.5 100 133
Processing: 113 119 4.3 118 132
Waiting: 111 116 4.4 115 128
Total: 205 220 9.0 219 259

Percentage of the requests served within a certain time (ms)
50% 219
66% 222
75% 230
80% 231
90% 231
95% 234
98% 239
99% 259
100% 259 (longest request)

I found this utility very useful to check performance of newly installed and configured Apache (httpd).

 
 
» You might also be interested in the following articles:
FAQ: How to disable directory browsing in apache/httpd?
Access to sqlite3 database through perl (script example)
Web server cluster with SUSE Linux Enterprise Server 10
Simple way to transmit files over network (nc utility)
Web server popularity 2007 (October)



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

4 Responses to “Apache web server benchmark tool ab”


  1. 1 Greg

    It looks very useful but am I supposed to run it from my server where Apache is installed or locally? If locally how can I install this program without installing all of Apache?

  2. 2 CAJAX!

    Just download ab and run it.

  3. 3 jith

    It is a very good tool for optimizing the apache webserver.
    thankyou
    please include the detail description for that tool.
    that is what the out put showing… .

  4. 4 uma mahesh varma

    Thank You, it helps a lot to check the performance issues for all web applications.

    Thank You,
    Uma.

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››