Use AB for stress testing of pages

Source: Internet
Author: User

Using AB for page pressure test AB is a very useful stress test tool from Apache, and when Apache is installed, you can find AB 1 under bin. We can simulate 100 concurrent users and send 1000 requests to a page./ab-n1000-c100 Http://vm1.jianfeng.com/a.html where-n represents the number of requests, and-C represents the number of concurrent returns: # #首先是apache的版本信息 This is apachebench, Version 2.3 < $Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Fo Undation, http://www.apache.org/Benchmarking vm1.jianfeng.com (Be patient) Server software:apache/2.2.19 # #apa  Che version Server Hostname:vm1.jianfeng.com # #请求的机子 Server port:80 # #请求端口Document Path:/a.html Document length:25 Bytes # #页面长度Concurrency level:100 # #并发数 time taken for tests:0.273 seconds # #共使用了多 Less time complete requests:1000 # #请求数 Failed requests:0 # #失败请求 Write errors:0 Total Transferred    : 275000 bytes # #总共传输字节数, HTML transferred:25000 bytes # #html字节数 containing header information such as HTTP, actual page Pass bytes requests per second: 3661.60 [#/sec] (mean) # #每秒多Less request, this is very important parameter value, server throughput time per request:27.310 [MS] (mean) # #用户平均请求等待时间 time per request:0.273 [MS] (mean , across all concurrent requests) # #服务器平均处理时间, which is the reciprocal of server throughput Transfer rate:983.34 [Kbytes/sec] Received # #每秒获取的数 According to length connection times (ms) min MEAN[+/-SD] median max connect:0 1 2.3 0 Proces      Sing:6 3.2-Waiting:5-3.2-Total:6 25 4.0 25 Percentage of the requests served within a certain time (MS) 50% 25 # # 50% requests return within 25MS 66% 26 # # 60% Request returned within 26ms 75% 80% 90% 95% 98% (99% 100%) longest EST) 2 AB can also run in Windows, if you install Apache under Windows, you can find ab.exe directly in the bin and use it without relying on other DLLs below is the result of my using Ab.exe to test Sina one page: C:\Users\ Nickyjf\desktop\useful>ab-n1000-c100 http://sports.sina.com.cn/k/2011-05-24/12095590365.shtml This is Apachebench, Version 2.3 < $Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Foundati On, http://www.apache.org/Benchmarking sports.sina.com.cn (be patient) completed requests completed-requests C Ompleted requests completed (requests completed) requests completed (requests completed) requests Com Pleted requests completed, requests completed, requests finished, requests Server Software:apach e/2.0.63 Server Hostname:sports.sina.com.cn Server port:80 Document Path:/k/2011-05-24/120 95590365.shtml Document length:86680 bytes Concurrency level:100 time taken for tests:66.453 seconds C  Omplete requests:1000 Failed requests:0 Write errors:0 total transferred:87135790 bytes HTML transferred:86680000 bytes Requests per second:15.05 [#/sec] (mean) time per request:6645.294 [m S] (mean) time per request:66.453 [MS] (mean, across all concurrent requests) Transfer rate:1280.51 [Kbytes/sec] received Conne    Ction times (ms) min MEAN[+/-SD] median max connect:1 398.3 2 3003 Processing:  6331 2603.7 6293 14626 waiting:2 1748 1485.9 1590 6284 total:90 6388 2615.0 6302 14627 Percentage of the requests served within a certain time (ms) 50% 6302 66% 7121 75% 8435 80% 9193 9  0% 9231 95% 9385 98% 11549 99% 12459 100% 14627 (longest request) 3 Apache AB tools are also considered a DDoS attack tool

Use AB for stress testing of pages

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.