How do I run a benchmark with Apache's ab command? Print

  • 0

Question

How do I run a benchmark with Apache's ab command?

 

Answer

Warning: cPanel support cannot run Apache ab on your behalf, as it may cause stability and performance issues with your domains during testing. If assistance is needed with running Apache ab, please contact a qualified system administrator. 

To perform a benchmark:

  1. Log in to SSH as root or use the WHM Terminal.
  2. Run the ab command with the following syntax:

    ab -n 100 -c 10 http://domain.tld/

    Note: The c value represents the number of requests to be active at a time. 
    http://domain.tld/ represents the URL to request.

 

Additional Resources

ab - Apache HTTP server benchmarking tool


Was this answer helpful?
Back

Send Message