nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Apache Benchmark

This is a discussion on Apache Benchmark within the Web servers forums, part of the Mastering Servers category; Can any one help to get it understand the result I have ran ab command on 2 servers. pl. help ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-05-2009, 12:27 PM
kasimani's Avatar
Senior Member
User
 
Join Date: Jul 2006
Location: India, Delhi
OS: CentOS, RedHat, Fedora, Ubuntu
Posts: 151
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 4
kasimani is on a distinguished road
Send a message via Yahoo to kasimani
Question Apache Benchmark

Can any one help to get it understand the result

I have ran ab command on 2 servers. pl. help me to read it and also tell me which server has the better condition and how much more be achieved.

1: ab -k -n 5000 -c 100 -t 60 localhost/tab/loadtest.php

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
Finished 50000 requests


Server Software: Apache
Server Hostname: localhost
Server Port: 80

Document Path: /tab/loadtest.php
Document Length: 63 bytes

Concurrency Level: 100
Time taken for tests: 37.835851 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 0
Total transferred: 12352223 bytes
HTML transferred: 3150567 bytes
Requests per second: 1321.50
Time per request: 75.672
Time per request: 0.757
Transfer rate: 318.80

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 11.1 5 137
Processing: 7 65 51.0 56 821
Waiting: 1 40 49.2 35 819
Total: 7 74 53.1 65 837

Percentage of the requests served within a certain time (ms)
50% 65
66% 80
75% 90
80% 96
90% 114
95% 129
98% 159
99% 176
100% 837 (longest request)



2: ab -k -n 5000 -c 100 -t 60 localhost/tab/loadtest.php (server 2)

Document Path: /tab/loadtest.php
Document Length: 1042 bytes

Concurrency Level: 100
Time taken for tests: 20.958712 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 0
Total transferred: 61424560 bytes
HTML transferred: 52120840 bytes
Requests per second: 2385.64
Time per request: 41.917
Time per request: 0.419
Transfer rate: 2862.01

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 5.8 1 73
Processing: 12 37 17.2 36 510
Waiting: 0 24 12.1 22 508
Total: 12 41 20.2 40 511

Percentage of the requests served within a certain time (ms)
50% 40
66% 47
75% 53
80% 57
90% 66
95% 77
98% 91
99% 105
100% 511

Last edited by kasimani; 19-05-2009 at 12:32 PM.
Reply With Quote
  #2 (permalink)  
Old 19-05-2009, 10:28 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use remote computer or another server. ab from localsystem will not give you accurate results.

Let us consider the following command which will connect as five users accessing cyberciti.biz site a total of 200 times.
Code:
ab -c 5 -n 200   http://www.cyberciti.biz/index.php
The following will give out will give infomration about the server:
Code:
Server Software:        lighttpd
Server Hostname:        www.cyberciti.biz
Server Port:            80

Document Path:          /
Document Length:        35472 bytes
Next you get statistics that provide a quick idea of how well the test went. Note there shoud not be any failed requests:
Code:
Concurrency Level:      5
Time taken for tests:   64.214 seconds
Complete requests:      200
Failed requests:        0
Write errors:           0
Total transferred:      7141276 bytes
HTML transferred:       7094400 bytes
Requests per second:    3.11 [#/sec] (mean)
Time per request:       1605.351 [ms] (mean)
Time per request:       321.070 [ms] (mean, across all concurrent requests)
Transfer rate:          108.60 [Kbytes/sec] received
The following provides millisecond timing statistics that should give you an idea of how long connections spent in various state.
Code:
              min  mean[+/-sd] median   max
Connect:      304  306   1.6    306     316
Processing:  1261 1296  38.9   1284    1551
Waiting:      312  315  10.1    313     408
Total:       1572 1602  39.5   1589    1865
The following gives an idea of what the worst case times were like:
Code:
Percentage of the requests served within a certain time (ms)
  50%   1589
  66%   1593
  75%   1597
  80%   1600
  90%   1625
  95%   1685
  98%   1767
  99%   1798
 100%   1865 (longest request)
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
The Following User Says Thank You to nixcraft For This Useful Post:
Kamiar (27-05-2009)
  #3 (permalink)  
Old 20-05-2009, 11:36 AM
kasimani's Avatar
Senior Member
User
 
Join Date: Jul 2006
Location: India, Delhi
OS: CentOS, RedHat, Fedora, Ubuntu
Posts: 151
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 4
kasimani is on a distinguished road
Send a message via Yahoo to kasimani
Default

/usr/local/apache2/bin/ab -k -n 5000 -c 100 -t 60 http://ibnlive.in.com/tab/loadtest.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, Application Delivery Networking, Application Acceleration, Internet Traffic Management System : Zeus.com
Copyright 2006 The Apache Software Foundation, Welcome! - The Apache Software Foundation

Benchmarking ibnlive.in.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Finished 17824 requests


Server Software: Apache
Server Hostname: ibnlive.in.com
Server Port: 80

Document Path: /tab/loadtest.php
Document Length: 1000 bytes

Concurrency Level: 100
Time taken for tests: 60.6869 seconds
Complete requests: 17824
Failed requests: 0
Write errors: 0
Keep-Alive requests: 17770
Total transferred: 22820884 bytes
HTML transferred: 17824000 bytes
Requests per second: 297.03 [#/sec] (mean)
Time per request: 336.663 [ms] (mean)
Time per request: 3.367 [ms] (mean, across all concurrent requests)
Transfer rate: 371.39 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 17
Processing: 7 204 1198.8 50 22540
Waiting: 7 204 1198.7 50 22540
Total: 7 204 1198.7 50 22540

Percentage of the requests served within a certain time (ms)
50% 50
66% 72
75% 94
80% 113
90% 225
95% 407
98% 1083
99% 2999
100% 22540 (longest request)
Reply With Quote
Reply

Tags
ab command , apache , http server benchmarking , httpd ab


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Apache on red hat tanweernoor Web servers 5 06-06-2009 02:21 AM
Apache 503 error sweta Web servers 0 01-11-2007 03:00 AM
Frontpage ext. on apache surmandal Web servers 0 09-10-2007 07:39 AM
Apache and lighttpd together anjanesh Web servers 4 29-08-2007 05:11 PM
Apache Memory Winston Web servers 1 18-06-2007 09:36 PM


All times are GMT +5.5. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38