notes

Apache Benchmarking (ab) on CentOS

Apache Benchmark location on CentOS servers:

  1. # /usr/local/apache/bin/ab

Apache Benchmarking is a great tool for testing Apache performance on web servers, for example running the following bash command:

  1. # /usr/local/apache/bin/ab -n 100 -c 5 http://google.com/

This will test 100 connections (-n), limited to 5 concurrent connections (-c) on the website google.com

You can also run Apache Benchmarking straight from Mac terminal using:

  1. # ab -n 100 -c 5 http://google.com/

Tip: make sure you end the url to test with a trailing slash or filename or the command won't work