Simulating concurrent requests siege in Linux systems

Source: Internet
Author: User

Siege stress Test, siege will simulate the interface and return the number of concurrent per second!

First, the installation of siege
Download: wget
First, the installation of siege
Download: wget http://download.joedog.org/siege/siege-latest.tar.gz http://www.joedog.org/pub/siege/siege-latest.tar.gz
Decompression: TAR-ZXVF siege-latest.tar.gz
CD siege-. *
./configure--prefix=/usr/local/siege--mandir=/usr/local/man--with-ssl=/usr/local/ssl
Mkdir-p/usr/local/siege/etc
Mkdir-p/usr/local/siege/var
Make
Make install

查看配置文件/usr/local/siege/bin/siege -C

Second, the use of siege
To illustrate:

50 users (each concurrent volume) repeated 100 times a total of 50*100 requests/usr/local/siege/bin/siege-c 50-r WWW.BAIDU.COM50 users repeat 100 times send get Parameters/usr/local/ Siege/bin/siege-c 50-r Http://www.baidu.com/s?wd=siege&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8 &tn=baiduhome_pg&rsv_sug3=4&rsv_sug=2&rsv_sug1=4&rsv_sug4=6050 users repeat 100 times to send post parameters (note the quotation marks)/usr/ Local/siege/bin/siege-c 50-r "https://www.abc.com/a.php post Name=zhangsan" 50 users repeat 100 times send POST parameters (read from file)/usr/ Local/siege/bin/siege-c 50-r "https://www.abc.com/a.php POST </root/ab_test/post.xml" In addition, there are many parameter details please man or SIEGE-HS Iege report parsing, please man view, temporary (a little tired, don't want to write ...) )。                   Transactions:10 Hits: The number of requests received by the server availability:100.00%: The percentage of the active elapsed time:                  1.06 secs: Time spent testing data transferred:0.04 MB: The amount of data transferred per impersonated user response:                     0.03 secs: Average time to respond to each impersonated user request transaction rate:9.43 trans/sec: The average number of transactions per second processed by the server throughput: 0.04 MB/sEC: The amount of data transferred per second by the server to all analog users concurrency:0.25: Analog connection per second successful transactions:10: Number of transactions successfully processed (code<400) Failed transactions:0: Number of transactions failed (code>400) longest transaction:0.04: Longest transaction Processing time Shortest transaction:0.02: shortest transaction processing time

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.

Example.url content:

http://www.licess.cn
Http://www.vpser.net
Http://soft.vpser.net

Result description
Lifting the server siege ... done.
transactions:3419263 hits//completed 419,263 times processing
availability:100.00%//100.00% success rate
Elapsed time:5999.69 secs//Total time
Data transferred:84273.91 MB//Total data transfer 84273.91 MB
Response time:0.37 secs//spents 1.65 seconds: Shows the speed of the network connection
Transaction rate:569.91 trans/sec//569.91 processing per second: indicates the server
throughput:14.05 mb/sec//Average data transfer per second
concurrency:213.42//Actual maximum number of concurrent
Successful transactions:2564081//successful processing times
Failed transactions:11//Failure handling times
Longest transaction:29.04//maximum time spent per transmission
Shortest transaction:0.00//minimum time per transmission
Decompression: TAR-ZXVF siege-latest.tar.gz
CD siege-. *
./configure--prefix=/usr/local/siege--mandir=/usr/local/man--with-ssl=/usr/local/ssl
Mkdir-p/usr/local/siege/etc
Mkdir-p/usr/local/siege/var
Make
Make install

查看配置文件/usr/local/siege/bin/siege -C

Second, the use of siege
To illustrate:

50 users (each concurrent volume) repeated 100 times a total of 50*100 requests/usr/local/siege/bin/siege-c 50-r WWW.BAIDU.COM50 users repeat 100 times send get Parameters/usr/local/ Siege/bin/siege-c 50-r Http://www.baidu.com/s?wd=siege&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8 &tn=baiduhome_pg&rsv_sug3=4&rsv_sug=2&rsv_sug1=4&rsv_sug4=6050 users repeat 100 times to send post parameters (note the quotation marks)/usr/ Local/siege/bin/siege-c 50-r "https://www.abc.com/a.php post Name=zhangsan" 50 users repeat 100 times send POST parameters (read from file)/usr/ Local/siege/bin/siege-c 50-r "https://www.abc.com/a.php POST </root/ab_test/post.xml" In addition, there are many parameter details please man or SIEGE-HS Iege report parsing, please man view, temporary (a little tired, don't want to write ...) )。                   Transactions:10 Hits: The number of requests received by the server availability:100.00%: The percentage of the active elapsed time:                  1.06 secs: Time spent testing data transferred:0.04 MB: The amount of data transferred per impersonated user response:                     0.03 secs: Average time to respond to each impersonated user request transaction rate:9.43 trans/sec: The average number of transactions per second processed by the server throughput: 0.04 MB/sEC: The amount of data transferred per second by the server to all analog users concurrency:0.25: Analog connection per second successful transactions:10: Number of transactions successfully processed (code<400) Failed transactions:0: Number of transactions failed (code>400) longest transaction:0.04: Longest transaction Processing time Shortest transaction:0.02: shortest transaction processing time

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.

Example.url content:

http://www.licess.cn
Http://www.vpser.net
Http://soft.vpser.net

Result description
Lifting the server siege ... done.
transactions:3419263 hits//completed 419,263 times processing
availability:100.00%//100.00% success rate
Elapsed time:5999.69 secs//Total time
Data transferred:84273.91 MB//Total data transfer 84273.91 MB
Response time:0.37 secs//spents 1.65 seconds: Shows the speed of the network connection
Transaction rate:569.91 trans/sec//569.91 processing per second: indicates the server
throughput:14.05 mb/sec//Average data transfer per second
concurrency:213.42//Actual maximum number of concurrent
Successful transactions:2564081//successful processing times
Failed transactions:11//Failure handling times
Longest transaction:29.04//maximum time spent per transmission
Shortest transaction:0.00//minimum time per transmission

Simulating concurrent requests siege in Linux systems

Related Article

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.