Description
Siege official website: https://www.joedog.org/siege-home/
Siege is a multithreaded HTTP load test and Benchmarking tool for Linux systems.
Reason for use: time to be neededinstallationwget http://download.joedog.org/siege/siege-latest.tar.gz tar-xzvf siege-latest.tar.gz./configure make make Install View configuration file/usr/local/siege/bin/siege-cSiege Command Common parameters-C 200 Specifies the number of concurrent 200-R 5 specified test 5-f urls.txt a URL-i Internet system, random send Url-b request without waiting for DELAY=0-T 5 continuous test 5 min-R and-T are generally not used simultaneouslyexamples of commonly used siege commands200 concurrent requests sent to http://www.google.com 100 times
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
Siege-c 200-r 100-f urls.txt-i delay=0, more accurate stress testing, rather than functional testing
Siege-c 200-r 100-f urls.txt-i-B Specify HTTP request header document type
Siege-h "Content-type:application/json"-C 200-r 100-f Urls.txt-i-BSiege output Result DescriptionTransactions: Total number of tests availability: Percent success Elapsed time: How many seconds total time is spent in data transferred: Total data transfer Response time: Wait for response time Transactio N Rate: Average number of requests processed per second throughput: Throughput concurrency: Maximum concurrency Successful transactions: Number of Successful requests Failed transactions: number of failed requestssome summaries of the use of siegeWhen sending a POST request, the URL format is: Http://www.xxxx.com/POST p1=v1&p2=v2 if the URL contains spaces and Chinese, first URL encoding, or siege send the request URL is not accurateTest
Siege-c xxx-i-T 5-d 1-f solr2-wcs.txt
Specify folder
Siege-c 300-r 100-i-b-f
Default Urls.txt