Home > Apache > Apache – tools

Apache – tools

# Times to ping
$ ab -n 1000 -c 5 http://www.shamun.be

# Keep Alive
$ ab -k -n 1000 -c 5 http://www.shamun.be

# Save to CSV
$ ab -k -n 50000 -c 2 -e apache2r1.cvs http://202.54.200.1/snkpage.html

Where,

  • -n 1000: ab will send 1000 number of requests to server 202.54.200.1 in order to perform for the benchmarking session
  • -c 5 : 5 is concurrency number i.e. ab will send 5 number of multiple requests to perform at a time to server 202.54.200.1

Output:

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 http://www.shamun.be (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests

Server Software:        Apache/2.2.14
Server Hostname:        http://www.shamun.be
Server Port:            80

Document Path:          /
Document Length:        440 bytes

Concurrency Level:      6
Time taken for tests:   1.522 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      793000 bytes
HTML transferred:       440000 bytes
Requests per second:    657.03 [#/sec] (mean)
Time per request:       9.132 [ms] (mean)
Time per request:       1.522 [ms] (mean, across all concurrent requests)
Transfer rate:          508.81 [Kbytes/sec] received

Connection Times (ms)
min  mean[+/-sd] median   max
Connect:        0    1   0.9      0       9
Processing:     2    8   4.4      8      65
Waiting:        0    8   4.4      7      65
Total:          2    9   4.3      8      65
WARNING: The median and mean for the initial connection time are not within a no
rmal deviation
These results are probably not that reliable.

Percentage of the requests served within a certain time (ms)
50%      8
66%     10
75%     11
80%     11
90%     13
95%     15
98%     18
99%     21
100%     65 (longest request)

Advertisements
Categories: Apache Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: