1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to interpret apache benchmark ab results? Please help!

Discussion in 'Apache' started by downloadsonline.org, Oct 10, 2011.

  1. #1
    Hi,
    I am having my sites on a hybrid VPS.

    I ran this command to test one of my websites :

    (The mainpage is a cached php page)
    SEMrush
    root@host [~]# ab -c5 -n500 http://healthtipsbest.com/
    and the result is as follows :

    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 healthtipsbest.com (be patient)
    Completed 100 requests
    Completed 200 requests
    Completed 300 requests
    Completed 400 requests
    Finished 500 requests
    
    
    Server Software:        Apache
    Server Hostname:        healthtipsbest.com
    Server Port:            80
    
    Document Path:          /
    Document Length:        26147 bytes
    
    Concurrency Level:      5
    Time taken for tests:   27.626703 seconds
    Complete requests:      500
    Failed requests:        0
    Write errors:           0
    Total transferred:      13194500 bytes
    HTML transferred:       13073500 bytes
    Requests per second:    18.10 [#/sec] (mean)
    Time per request:       276.267 [ms] (mean)
    Time per request:       55.253 [ms] (mean, across all concurrent requests)
    Transfer rate:          466.40 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0  192 711.6     14    3019
    Processing:    10   83 159.0     66    1622
    Waiting:        1   37 161.9     16    1604
    Total:         16  275 781.1     82    4622
    
    Percentage of the requests served within a certain time (ms)
      50%     82
      66%     85
      75%     87
      80%     89
      90%     94
      95%   3028
      98%   3073
      99%   4592
     100%   4622 (longest request)
    
    Code (markup):

    Is there any problem with my server?

    Please help me understand the results and finetune my server.

    Please reply if you would like to know more information.

    Thank you.
     
    downloadsonline.org, Oct 10, 2011 IP
    SEMrush
  2. samdar

    samdar Well-Known Member

    Messages:
    1,069
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #2
    I dont see any problem. The commands looks correct. Why dont you restart Apache and let us know if this works?
     
    samdar, Oct 10, 2011 IP
  3. downloadsonline.org

    downloadsonline.org Active Member

    Messages:
    765
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Hi,
    Thank you for your reply.
    I think there is some problem with my Connection Times
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0  192 711.6     14    3019
    Processing:    10   83 159.0     66    1622
    Waiting:        1   37 161.9     16    1604
    Total:         16  275 781.1     82    4622
    
    Percentage of the requests served within a certain time (ms)
      50%     82
      66%     85
      75%     87
      80%     89
      90%     94
      95%   3028
      98%   3073
      99%   4592
     100%   4622 (longest request)
    Code (markup):

    When I run the same command on google.com, here is the result :

    root@host [~]# ab -c1 -n500 http://google.com/
    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 google.com (be patient)
    Completed 100 requests
    Completed 200 requests
    Completed 300 requests
    Completed 400 requests
    Finished 500 requests
    
    
    Server Software:        gws
    Server Hostname:        google.com
    Server Port:            80
    
    Document Path:          /
    Document Length:        219 bytes
    
    Concurrency Level:      1
    Time taken for tests:   11.643690 seconds
    Complete requests:      500
    Failed requests:        0
    Write errors:           0
    Non-2xx responses:      500
    Total transferred:      255500 bytes
    HTML transferred:       109500 bytes
    Requests per second:    42.94 [#/sec] (mean)
    Time per request:       23.287 [ms] (mean)
    Time per request:       23.287 [ms] (mean, across all concurrent requests)
    Transfer rate:          21.38 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        8   10   7.3      8      35
    Processing:     9   12   7.5     10      38
    Waiting:        9   12   7.4     10      37
    Total:         17   22  14.8     18      72
    
    Percentage of the requests served within a certain time (ms)
      50%     18
      66%     18
      75%     18
      80%     19
      90%     19
      95%     70
      98%     71
      99%     71
     100%     72 (longest request)
    
    Code (markup):

    When I compare my site results with google, I find that my site is having some problem with Connection Times.

    How to solve this issue.

    Is there any other issue ?

    Thank you
     
    downloadsonline.org, Oct 10, 2011 IP