ApacheBench
ApacheBench (ab) is a single-threaded command line computer program for measuring the performance of HTTP web servers. Originally designed to test the Apache HTTP Server, it is actually 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.
Contents |
[edit] Example Usage
ab -n 100 -c 10 http://www.yahoo.com/
This will execute 100 HTTP GET requests, using 10 threads (10 requests per thread) to the specified URL, in this example, "http://www.yahoo.com".
[edit] Detecting ApacheBench
The ApacheBench User Agent string is the following:
ApacheBench/MAJOR.MINOR
where MAJOR and MINOR represent the major and minor version numbers of the program. 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.
[edit] See also
[edit] External links
- Manual page for the 'ab' tool
- Apache HTTPD official website
- Extending ApacheBench to log CPU and memory usage of a server (open-source tool)
| This Web software related article is a stub. You can help Wikipedia by expanding it. |