Apache Ab Benchmark

Posted on  by admin

I try to install Apache Benchmark using Is there a way to install Apache Bench (ab) without installing apache solutions on my centos but when i run yumdownloader httpd, i get error: [email protected] /. Using a benchmarking tool to test the limits of your apache server will help you prepare for upgrades. Installing AB on CentOS (with cPanel) cPanel adds in an exclusion for all packages named httpd. (any files starting with httpd) to prevent accidentally overwriting apache.

ApacheBench (ab) is a single-threaded command line computer program for measuring the performance of HTTPweb servers.[1] Originally designed to test the Apache HTTP Server, it is generic enough to test any web server.

The ab tool comes bundled with the standard Apache source distribution, and like the Apache web server itself, is free, open source software and distributed under the terms of the Apache License.


Example usage[edit]

This will execute 100 HTTP GET requests, processing up to 10 requests concurrently, to the specified URL, in this example, 'http://en.wikipedia.org/wiki/Main_Page'.[2]

Concurrency versus threads[edit]

Note that ApacheBench will only use one operating system thread regardless of the concurrency level (specified by the -c parameter). In some cases, especially when benchmarking high-capacity servers, a single instance of ApacheBench can itself be a bottleneck. When using ApacheBench on hardware with multiple processor cores, additional instances of ApacheBench may be used in parallel to more fully saturate the target URL.

Apache Ab Benchmark

Detecting ApacheBench[edit]

The ApacheBench User Agent string is ApacheBench/MAJOR.MINOR where MAJOR and MINOR represent the major and minor version numbers of the program.[3] It is usually not correctly categorised by web server log analysers such as Webalizer or AWStats, so running ApacheBench with a great number of requests may skew the results of the reports generated by these programs.

See also[edit]


Apache ab benchmarks
  1. ^'ab - Apache HTTP server benchmarking tool'. Apache. Retrieved 9 October 2014.CS1 maint: discouraged parameter (link)
  2. ^'Using Apache Bench for Simple Load Testing'. Pete Freitag's ColdFusion, Java and Web Development Blog. Retrieved 9 October 2014.CS1 maint: discouraged parameter (link)
  3. ^'Useragent detail: AB (Apache Bench)'. User-Agent-String-Info. Retrieved 9 October 2014.CS1 maint: discouraged parameter (link)

External links[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=ApacheBench&oldid=957645671'
  • Apache Bench Tutorial
  • Apache Bench Useful Resources
  • Selected Reading

Apache Bench (ab) is a load testing and benchmarking tool for Hypertext Transfer Protocol (HTTP) server. It can be run from command line and it is very simple to use. A quick load testing output can be obtained in just one minute. As it does not need too much familiarity with load and performance testing concepts, therefore it is suitable for beginners and intermediate users. To use this tool, no complex setup is required. Moreover, it gets installed automatically with Apache web server, or it can be installed separately as Apache utility. It does not have all the features of more popular tools such as jMeter or Grinder, but it is good for a start.

Apache Ab Benchmarks

This tutorial is designed for Application Developers and System Administrators, who are willing to learn Apache Bench in simple and easy steps. This tutorial will give you practical knowledge on Apache Bench, and after completing this tutorial, you will be at an intermediate level of expertise from where you can take yourself to higher level of expertise.

Apache Ab Benchmark Assessment

Before proceeding with this tutorial, you should have a basic understanding of command line interface (CLI), HTTP, text editor and web servers, etc., because you will need these tools to successfully run Apache Bench for load testing. In addition, it will be good if you have knowledge of web development and application testing processes.