THE IT IDEAS

  • Home

Thursday, 20 November 2014

How to Benchmarking Webserver

 THE IT IDEAS     15:53     How to Benchmarking Webserver   

By Default Apache providing benchmarking command as "ab". With this command you can measure Number of requests to perform for the benchmarking session with no. of Number of multiple requests to perform at a time.



Command with Output



# ab -n 1000 -c 100 localhost/test.php

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 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.26
Server Hostname:        localhost
Server Port:            80

Document Path:          /test.php
Document Length:        7 bytes

Concurrency Level:      100
Time taken for tests:   0.195 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      230460 bytes
HTML transferred:       7014 bytes
Requests per second:    5121.43 [#/sec] (mean)
Time per request:       19.526 [ms] (mean)
Time per request:       0.195 [ms] (mean, across all concurrent requests)
Transfer rate:          1152.62 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.7      0       4
Processing:     3   18   4.7     17      30
Waiting:        3   18   4.7     17      30
Total:          7   19   4.4     18      31
WARNING: The median and mean for the initial connection time are not within a normal deviation
        These results are probably not that reliable.

Percentage of the requests served within a certain time (ms)
  50%     18
  66%     19
  75%     21
  80%     22
  90%     26
  95%     28
  98%     29
  99%     29
 100%     31 (longest request)



Note ::
"-n" switch for Number's of request.
"-c" switch for Number of multiple request at a time

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

Like Us !!!

Recent Posts

Blog Archive

  • ►  2016 (1)
    • ►  April (1)
  • ►  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ►  April (8)
    • ►  March (1)
  • ▼  2014 (23)
    • ►  December (8)
    • ▼  November (12)
      • How to setup Network Configuration in Ubuntu Serve...
      • Amazon RDS Restore MySQL Backup with functions
      • How to install Tomcat in Ubuntu
      • How to install Oracle JAVA JDK with apt-get command
      • How to set environment Variable permenantly in MAC...
      • How to Mount AWS S3 Bucket into AWS EC2 Instance (...
      • How to change DocumentRoot path in Apache Ubuntu 1...
      • How to Benchmarking Webserver
      • How to Choose AWS EC2 Instance
      • SCP Command Example
      • MySQL Basic Commands for Linux
      • How to enable mod rewrite module in apache2
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • Install MongoDB php driver in XAMPP/LAMPP
    To install the php driver for MongoDB Prerequisite :: #sudo apt-get install autoconf #export PHP_AUTOCONF=/usr/bin/autoconf #sudo apt...
  • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7 on Ubuntu 16.04 LTS
    Update your repo list with below command $ sudo apt-get update -- > Install Apache 2.4.18 $ sudo apt-get install apac...
  • Share Internet from one PC to another PC
    Open Network Connections by clicking the Start button , clicking Control Panel , clicking Network and Internet , clicking Network and S...

Copyright © THE IT IDEAS | Powered by Blogger