Differences
This shows you the differences between two versions of the page.
— | apache_benchmarks [2015/06/02 02:59] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Apache Benchmarking ====== | ||
+ | |||
+ | * [[Apache]] | ||
+ | * [[Apache Tuning]] | ||
+ | |||
+ | * [[http:// | ||
+ | ==== The Goal of Benchmarking ==== | ||
+ | |||
+ | The goal of doing benchmark tests is to see what the practical configuration would be for Apache. | ||
+ | ==== Using ab ==== | ||
+ | |||
+ | You can use '' | ||
+ | |||
+ | An example, that uses 25 concurrent connections, | ||
+ | |||
+ | < | ||
+ | ab -c 25 -v -k -n 1500 -e / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Howto Run a Benchmark Test ==== | ||
+ | |||
+ | Before you do any tests suites, use CGP to determine that average number of webserver connections over a specific period of time (week, month, etc.). | ||
+ | |||
+ | Once you have the average number of connections, | ||
+ | |||
+ | Simulating the average number of connections (5) over 15 seconds. | ||
+ | |||
+ | < | ||
+ | ab -c 5 -t 15 -v -k http:// | ||
+ | </ | ||
+ | |||
+ | Please note that in benchmarking, | ||
+ | |||
+ | Running a test over a period of time is probably going to be easier to see, as you can watch the results in realtime with the system load. The opposite, using a number of requests, would be good if you wanted to simulate a sudden spike. | ||
+ | |||