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

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

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

  1. # ab -n 100 -c 5

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