Results 1 to 2 of 2

Thread: Apache Benchmarking Tool

  1. #1
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts

    Apache Benchmarking Tool

    ab - Apache HTTP server benchmarking tool looks like a pretty nifty little command for performance testing and troubleshooting an Apache server from the Unix command line.

    It has a large number of options, but this seems like a good combination to start with:
    Code:
    ab -kc 10 -t 30 http://localhost/
    These settings mean:

    -k (enable KeepAlive)
    -c10 (perform 10 requests concurrently)
    -t30 (limit the testing time to 30 seconds)
    On my server, this produced the following output:
    Code:
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking localhost (be patient)
    Completed 5000 requests
    Completed 10000 requests
    Completed 15000 requests
    Completed 20000 requests
    Completed 25000 requests
    Completed 30000 requests
    Completed 35000 requests
    Completed 40000 requests
    Completed 45000 requests
    Completed 50000 requests
    Finished 50000 requests
    
    
    Server Software:        Apache/2.2.11
    Server Hostname:        localhost
    Server Port:            80
    
    Document Path:          /
    Document Length:        313 bytes
    
    Concurrency Level:      10
    Time taken for tests:   14.476 seconds
    Complete requests:      50000
    Failed requests:        0
    Write errors:           0
    Non-2xx responses:      50008
    Keep-Alive requests:    49511
    Total transferred:      29583222 bytes
    HTML transferred:       15652504 bytes
    Requests per second:    3454.03 [#/sec] (mean)
    Time per request:       2.895 [ms] (mean)
    Time per request:       0.290 [ms] (mean, across all concurrent requests)
    Transfer rate:          1995.73 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.4      0      10
    Processing:     0    3   2.0      3      93
    Waiting:        0    3   2.0      3      93
    Total:          0    3   2.1      3      93
    
    Percentage of the requests served within a certain time (ms)
      50%      3
      66%      3
      75%      3
      80%      3
      90%      4
      95%      4
      98%      6
      99%      8
     100%     93 (longest request)
    The next task is to make server changes and monitor their effects on performance.

    This tool is especially useful because it can be run directly on your web server, which enables you to separate server performance issues from network performance issues.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  2. Thanked by:

    vectro (26 October, 2009)

  3. #2
    vectro's Avatar
    vectro is offline I Like Stuff
    Join Date
    Dec 2008
    Location
    U.S.A.
    Posts
    630
    Thanks
    192
    Thanked 104 Times in 82 Posts
    Great tool. Didn't even know it existed, thanks! Looks like my server is in good shape.

    Code:
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking localhost (be patient)
    
    
    Server Software:        Apache
    Server Hostname:        localhost
    Server Port:            80
    
    Document Path:          /
    Document Length:        111 bytes
    
    Concurrency Level:      10
    Time taken for tests:   3.526 seconds
    Complete requests:      50000
    Failed requests:        0
    Write errors:           0
    Keep-Alive requests:    49511
    Total transferred:      19178483 bytes
    HTML transferred:       5550000 bytes
    Requests per second:    14180.69 [#/sec] (mean)
    Time per request:       0.705 [ms] (mean)
    Time per request:       0.071 [ms] (mean, across all concurrent requests)
    Transfer rate:          5311.80 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.0      0       2
    Processing:     0    1   1.3      1      65
    Waiting:        0    1   1.3      1      65
    Total:          0    1   1.3      1      65
    
    Percentage of the requests served within a certain time (ms)
      50%      1
      66%      1
      75%      1
      80%      1
      90%      1
      95%      1
      98%      2
      99%      3
     100%     65 (longest request)

Similar Threads

  1. LiteSpeed vs Apache
    By sachin410 in forum Web Hosting
    Replies: 10
    Last Post: 3 December, 2009, 17:04 PM
  2. Apache Top
    By Will.Spencer in forum Managing
    Replies: 0
    Last Post: 26 October, 2009, 18:20 PM
  3. Best Proxy Apache Configureation
    By ProxySites.ca in forum Web Proxies
    Replies: 5
    Last Post: 8 September, 2009, 14:34 PM
  4. Setting up Apache/MySQL/PHP
    By johnting101 in forum Managing
    Replies: 3
    Last Post: 26 August, 2009, 12:53 PM
  5. Best bundle software for apache
    By yere in forum Managing
    Replies: 6
    Last Post: 25 August, 2009, 16:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •