Web Server Stress test tool: AB
Apache Stress Test Tool
AB is a test tool that comes with Apache and is very powerful
Syntax format:
AB "option" URL
-C Concurrency: The number of requests initiated at once, the default is 1;
-I: Use the head method when testing, the default is get;
-K: Enable HTTP long connection request mode;
-N Requests: The total number of simulated requests initiated, the default is 1, the number of requests is greater than or equal to the number of concurrent connections;
-Q: Silent mode, when the number of requests is greater than 150 does not output the percentage of request completion;
Output Result:
Time taken for tests: the duration from the first request connection to the end of the response message that received the last request;
Requests per second:34.58 [#/sec] (mean) Number of requests processed each second
Time per request:2891.712 [MS] (Mean) indicates the duration of a single initiated concurrent request
Time per request:28.917 [MS] (mean, across all concurrent requests) indicates the duration of each request
Complete requests: number of successful requests;
Second, Webbench
Webbench is a Web site stress testing tool under Linux that can simulate up to 30,000 concurrent connections to test the load capacity of a Web site. : http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz
This program is smaller, after decompression less than 50K, hehe
Very simple installation
#tar ZXVF webbench-1.5.tar.gz
#cd webbench-1.5
#make && make Install
Generates the Webbench executable file in the current directory, which can be used directly
Usage:
Webbench-c Concurrent number-T run test time URL
Such as:
Webbench-c 5000-t http://www.vpser.net/
Third, Siege
An open-source stress testing tool that allows multiuser concurrent access to a Web site based on configuration, recording the corresponding time for each user's request process, and repeating under a number of concurrent accesses.
Official: http://www.joedog.org/
Siege Download: http://soft.vpser.net/test/siege/siege-2.67.tar.gz
Extract:
# TAR-ZXF Siege-2.67.tar.gz
Go to unzip directory:
# CD siege-2.67/
Installation:
#./configure; Make
#make Install
Use
Siege-c 200-r 10-f Example.url
-C is the concurrency,-R is the number of repetitions. The URL file is a text, each line is a URL, it will be randomly accessed from the inside.
Iv. Http_load
The program is very small, after decompression is less than 100K
The http_load runs in parallel multiplexing to test the throughput and load of the Web server. However, unlike most stress testing tools, it can run in a single process and generally does not kill the client. You can also test site requests for HTTPS classes.
: http://soft.vpser.net/test/http_load/http_load-12mar2006.tar.gz
Installation is simple
#tar ZXVF http_load-12mar2006.tar.gz
#cd http_load-12mar2006
#make && make Install
Command format: http_load-p number of concurrent access processes-S access time URL file to access
Parameters can be freely combined, and there is no limit to the choice between parameters. Like you wrote Http_load-parallel 5-seconds.
The urls.txt is also possible. Let's give you a brief explanation of the parameters.
-parallel Shorthand-P: means the number of concurrent user processes.
-fetches abbreviated-F: Meaning total number of accesses
-rate Shorthand-P: meaning the frequency of visits per second
-seconds shorthand-S: meaning Total access time
Prepare URL file: Urllist.txt, file format is one url,url per line preferably more than 50-100 test results better
This article from the "Linux Learning Path" blog, declined reprint!
Web Server Stress Testing tool