Siege pressure test

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.