Web Stress test Tool: Http_load, Webbench, AB, Siege tutorial

Source: Internet
Author: User

First, 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. But it's different from most stress testers.

, it can run in a single process and generally does not kill the client. You can also test site requests for HTTPS classes.

Download Install: WGET  HTTP://WWW.ACME.COM/SOFTWARE/HTTP_LOAD/HTTP_LOAD-14AUG2014.TAR.GZTAR ZXVF HTTP_ Load-14aug2014.tar.gzcd http_load-14aug2014make && make install command format: http_load  [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs]            [-sip sip_file]             -parallel N | -rate N [-jitter]             -fetches n | -seconds n             url_file Use Example: Http_load -parallel  10 -fetches 100 url_fileurl_file file Contents:  http://www.baidu.com/result Description: 100 fetches,  10 max parallel,1.06255e+07 bytes, in 2.48953 seconds  #请求数, maximum number of processes, Total data transfer, runtime 106255 MEAN&Nbsp;bytes/connection  The amount of data transmitted by the #每个请求/connection 40.1683 fetches/sec, 4.26808e+06 bytes/sec  #每秒请求数, The amount of data transmitted per second msecs/connect: 0.0879 mean, 0.236 max, 0.028 min  #平均响应时间, maximum response time, Minimum response time msecs/first-response: 238.966 mean, 350.087 max, 98.128 min  #HTTP  response codes:  code 200 -- 100

Be aware that the system is experiencing bottlenecks. Special Note: The main indicators of the test results are fetches/sec, msecs/connect this option, that is, the number of queries that the server can respond to every second,

Use this indicator to measure performance. Seems to be a bit higher than Apache's AB accuracy and more persuasive. Qpt-responds to user times per second and response time per connection.

The result of the test is mainly to look at these two values. Of course only these two indicators do not complete the performance analysis, we also need to the server

CPU, men to analyze, to draw conclusions

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.

Download install: wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gztar zxvf WEBBENCH-1.5.TAR.GCD Webbench-1.5make && make install command format: use example: Result description:



Third, AB

AB is a powerful test tool from Apache

Command format: usage: ab [options] [http[s]://]hostname[:p ort]/pathoptions are:     -n requests     Number of requests to perform     -c concurrency  number of multiple requests to make  at a time    -t timelimit    seconds to  max. to spend on benchmarking                     This implies -n 50000     -s timeout      Seconds to max. wait  for each response                     Default is 30 seconds    -b  Windowsize   siZe of tcp send/receive buffer, in bytes    -b address       address to bind to when making outgoing  connections    -p postfile     file containing  data to POST. Remember also to set -T    -u  Putfile      file containing data to put. remember  also to set -t    -t content-type content-type header  to use for POST/PUT data, eg.                      ' application/x-www-form-urlencoded '                      Default is ' Text/plain '     -v verbosity    How much  troubleshooting info to print    -w               print out results in html tables     -i               Use head instead of get    -x attributes   string  to insert as table attributes    -y attributes    string to insert as tr attributes    -z attributes    String to insert as td or th attributes     -C attribute    Add cookie, eg.  ' apache=1234 ' .  (repeatable)     -h attribute    add arbitrary header line, eg.  ' Accept-Encoding: gzip '                      Inserted after all normal header lines.  (repeatable)      -a attribute    add basic www authentication, the  attributes                     are a colon separated username and password.     -p attribute    add basic proxy authentication,  the attributes                     are a colon separated username and password.     -x proxy:port   proxyserver and port number to use     -v              print version  number and exit    -k               Use HTTP KeepAlive feature    -d               Do not show  percentiles served table.    -s               Do not show confidence estimators and  warnings.    -q               Do not show progress when doing more than 150  requests    -l              accept variable  document length  (use this for dynamic pages)     -g  filename     output collected data to gnuplot format  File.    -e filename     output csv file with  percentages served    -r               don ' t exit on socket receive errors.     -h              display usage  information  (this message)     -Z ciphersuite  Specify  ssl/tls cipher suite  (see openssl ciphers)     -f protocol     &nbsP specify ssl/tls protocol                      (Ssl3, tls1, tls1.1, tls1.2 or all) Use example: ab -c10 n100 http://www.baidu.com result description:benchmarking www.baidu.com  (be  Patient) .....doneserver software:        bws/1.1server  hostname:        www.baidu.comserver port:             80Document Path:           /document length:        95852  bytesconcurrency level:      10time taken for tests:    1.406 secondsComplete requests:      100Failed  Requests:        97    (connect: 0, receive: 0, length: 97,  exceptions: 0) total transferred:      9674753 byteshtml  transferred:       9572326 bytesrequests per second:     71.13 [#/sec]  (mean) time per request:        140.584 [ms]  (mean) time per request:        14.058 [ms]  (mean, across all concurrent requests) Transfer rate:           6720.53 [Kbytes/sec] receivedConnection  times  (MS)               min   mean[+/-sd] median   maxConnect:       24    32   4.6     33      41processing:    74   102  20.6    101     248Waiting:        26   37  15.5     35      182Total:         99  134   24.0    134     281Percentage of the  requests served within a certain time  (MS)   50%     134  66%    143  75%    153  80%     154  90%    155  95%     159  98%    170  99%    281 100%     281  (longest reQuest 



Iv. 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/


Download and install:wget  http://download.joedog.org/siege/siege-latest.tar.gztar -zxvf  Siege-latest.tar.gzcd siege-latest./configure make&&make install command format: use example: Siege -c  200 -r 10 -f example.url result Description: Lifting the server siege... done. transactions: 3419263 hits  #完成419263次处理Availability: 100.00 %  #100.00 %   Success rate elapsed time: 5999.69 secs  #总共用时Data  TRANSFERRED: 84273.91 MB   #共数据传输84273 .91 mbresponse time: 0.37 secs  #相应用时1.65 seconds: Shows the speed of the network connection transaction  rate: 569.91 trans/sec  #均每秒完成  569.91  Secondary processing: Throughput: 14.05 mb/sec After the server is represented   #平均每秒传送数据Concurrency: 213.42  #实际最高并发数Successful  transactions: 2564081 # Number of successful processes failed transactions: 11  #失败处理次数Longest  transaction: 29.04 # The maximum time spent on each transmission is shortest transaction: 0.00  #每次传输所花最短时间



Web Stress test Tool: Http_load, Webbench, AB, Siege tutorial

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.