cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:web:httpd:ab.html



Apache HTTP Server Configuration Examples

Load Test with ab command

ApacheBench

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server.

Refarence

How to use ab

# ab -h
Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
    -n requests     Number of requests to perform
    -c concurrency  Number of multiple requests to make
(abbr)

Example

ab -n 100 -c 10 http://localhost/
    This will execute 100 HTTP GET requests, processing up to 10 requests concurrently, 

ab -n 1000 -c 100 http://localhost/
ab -n 2500 -c 250 http://localhost/
ab -n 3000 -c 300 http://localhost/
ab -n 5000 -c 500 http://localhost/
ab -n 7000 -c 700 http://localhost/
ab -n 8000 -c 800 http://localhost/
ab -n 9000 -c 900 http://localhost/
ab -n 10000 -c 1000 http://localhost/
ab -n 15000 -c 1500 http://localhost/
ab -n 20000 -c 2000 http://localhost/



middleware/web/httpd/ab.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools