Siege is a web-based stress testing tool for Web systems that supports multiple links, get and post requests, and can carry out multiple concurrent requests to the Web system for stress testing. Installation Siege #wgethttp://www.joedog.org/pub/siege/siege-latest.tar.gz #tar-xzvf siege-latest.tar.gz #./ Configure Make #make Install Siege command Common parameters
-C 200 Specify concurrency number 200
-R 5 Specify the number of tests 5
-F urls.txt file for URL development
-I Internet system, send URL randomly
-B request without waiting delay=0
-T 5 continuous test for 5 minutes
#-R and-T generally use common siege command examples
# 200 concurrent requests for http://www.google.com send 100 siege-c 200-r http: www. google.com
# List all URLs in Urls.txt siege-c 200-r 100-f urls.txt
# randomly selected Urls.txt list all URLs in siege-c 200-r 100-f urls.txt-i
# delay=0, more accurate stress testing, not functional test siege-c 200-r 100-f urls.txt-i-B
# Specifies the HTTP request header document type Siege-h "Content-type:application/json"-C 200-r 100-f urls.txt-i-B Siege Output description
Transactions: Total number of tests
Availability: Percentage of successful times
Elapsed time: How many seconds in total
Data transferred: Total data transfer
Response time: Wait until the response is time-consuming
Transaction Rate: Average number of requests processed per second
Throughput: Throughput Rate
Concurrency: Maximum concurrency
Successful transactions: number of Successful requests
Failed transactions: Number of failed requests siege some of the summaries used
1, when sending a POST request, the URL format is: Http://www.xxxx.com/POST p1=v1&p2=v2
2, if the URL contains spaces and Chinese, first URL encoding, otherwise siege sent the request URL is not accurate
Add to
Siege-c can view the relevant configuration parameters, can be modified by itself, such as whether to display log, timeout time