LANNN – Installing Apache Benchmark on CentOS (EC2 Linux AMI) with NginX

wp-content/uploads/2013/04/AWS-nginx-node-mongo-300x212.jpg

Benchmarking is important part for every type of web application. Benchmarking results might be critical factor for making decision about system upgrade or rebuild. Apache Benchmark (ab) is good tool that will help you test your NginX performance.

If you are following LANNN series that is good time to run your 1st benchmark. Lets use Apache Benchmark to do the work for us.

Installing Apache Benchmark (ab) on CentOS

You will need to install apr-utils and yum-utils first.

Note: Don’t use it before you finish reading.

This is commonly used and spoken method. Unfortunately it WILL NOT work on AWS EC2 Linux AMI based CentOS.

Even if you correct version that is the place you will get stuck. On CentOS httpd package doesn’t have ab tool.

Instead you should extract Apache Benchmark from httpd-tools. And here is how.

Now extract ab (Apache Benchmark) and move it to  /usr/bin  folder

Testing

Now you can use ab (Apache Benchmark) tool to test your site.  Parameters you want to use are:

So run ab command making 100 requests  to google.com  with 10 concurrent connections and waiting maximum 60 seconds for response per connection

Remember to put slash at the end as ab syntax is as follows.

 

 

Series Navigation<< LANNN – Setting up NginX with PHP and Node.js on AWSLANNN – extra speed with using Varnish in front of Nginx and Node.js >>
This entry is part 6 of 8 in the series AWS - Nginx Node.js MongoDB

Freelance developer, IT enthusiast, blogger with entrepreneurial spirit and passion for making games

Tagged with:
, , , , , , , , , , ,
Posted in
AWS, Technical
Categories