Apache AB pressure measurement tool for quick use

Source: Internet
Author: User
Tags server port

AB is an easy-to-use stress test tool with httpd, which is an abbreviation for Apache bench commands. The AB command creates multiple concurrent access threads, simulating multiple visitors accessing a URL address at the same time. It can be used to test the load pressure of Apache, and can also be used to test the pressure load performance of Nginx, Lighthttp, Tomcat, IIS and other WEB servers.

Installing yum-y install Httpd-tools to see if the installation was successful
Ab-v

Help View AB Parameters detailed description

AB--help
Formal pressure measurement
Ab-n 100-c http://www.baidu.com

-N represents 100 requests, and-C emulates 20 concurrency, which is equivalent to 20 people accessing the following test URLs at the same time

Ab-t 60-c http://www.baidu.com

Request within 60s, 100 requests at a time

Result parameter interpretation
Completed -requests Completed $requests Completed -requests Completed -requests Completed -requests Completed -requests Completed therequests Completed -requests finished -Requestsserver Software:microsoft-httpapi/2.0represents the Web server software name that is being tested in server Hostname:192.168.0.10represents the URL of the request host Name server Port: theindicates the listening port of the Web server software being tested document Path:/represents the root absolute path in the URL of the request, through the file's suffix name, we can generally understand the type of the request document Length:315bytes represents the body length of the HTTP response data concurrency level: -represents the number of concurrent users, which is one of the parameters we set. Time Taken forTests0.914seconds the time it takes for all these requests to be processed complete requests: -number of completed requests failed requests:0number of failed requests write errors:0Non-2XX Responses: -Total Transferred:393600Bytes Total network traffic HTML transferred:252000bytes HTML content transfer requests per second:875.22[#/sec] (mean) throughput-number of requests per second time per request:914.052[MS] (mean) the server receives the request, the time it takes to respond to the page is as per request:1.143[MS] (mean, across all concurrent requests) the average time spent on each request in parallel Transfer rate:420.52[Kbytes/sec] received average per second of network traffic, can help to troubleshoot the presence of excessive network traffic resulting in extended response time
Decomposition of time consumed on the network:
Connection times (ms) Min mean[+/-SD] Median max Connect:0       1       0.5      1       3Processing:245     534     125.2    570     682Waiting: One      386     189.1    409     669Total:246     535     125.0    571     684

The response of all requests in the entire scene. Each request has a response time in the scene

Where 50% of the user response time is less than 571 milliseconds

80% user response time is less than 652 milliseconds

Maximum response time of less than 684 milliseconds

 Time (ms)    571%           627%       646   652%           666       677    98%    681%       682      684 (Longest request)

Apache AB pressure measurement tool for quick use

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.