measure apache speed with ab

Primary tabs

dragster

introduction

Measure the performance of the LIC (Larg's Internet Cluster). Use the Apache HTTP server benchmarking tool.

This test gets a test page a hundred times. The external test host xcl01 sends the requests and the web servers ics01, ics02 and ics03 send the replies. This simple web site test finishes in a few milliseconds.

See http://cluster.planetlarg.com/mediawiki/index.php/Benchmark_with_ab

measure speed

Use the apache ab command.

  1. Open a CLI on the server host.
  2. Measure speed.
    issalarg@xcl01:~$ /usr/bin/ab -n 100 -c 10  http://200.0.0.10/infrastructure/host1
    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 200.0.0.10 (be patient).....done
    
    
    Server Software:        Apache/2.2.9
    Server Hostname:        200.0.0.10
    Server Port:            80
    
    Document Path:          /infrastructure/host1
    Document Length:        6 bytes
    
    Concurrency Level:      10
    Time taken for tests:   0.053 seconds
    Complete requests:      100
    Failed requests:        0
    Write errors:           0
    Total transferred:      25534 bytes
    HTML transferred:       600 bytes
    Requests per second:    1874.20 [#/sec] (mean)
    Time per request:       5.336 [ms] (mean)
    Time per request:       0.534 [ms] (mean, across all concurrent requests)
    Transfer rate:          467.34 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    1   0.3      1       1
    Processing:     1    4   3.0      5      18
    Waiting:        1    4   2.9      4      18
    Total:          1    5   3.0      5      19
    
    Percentage of the requests served within a certain time (ms)
      50%      5
      66%      7
      75%      7
      80%      8
      90%      8
      95%      9
      98%     10
      99%     19
     100%     19 (longest request)
    issalarg@xcl01:~$
    
  3. Close the CLI.

troubleshoot