Under the Apache server, use the AB command for stress testing

Source: Internet
Author: User

AB is the performance Test tool for Apache Hypertext Transfer Protocol (HTTP). Its design intent is to depict the execution performance of the currently installed Apache, primarily to show how many requests per second Apache you have installed.

#ab-V can see its basic information

#ab-N1000-C10 http://localhost:81/t.php

This is a basic command

-n1000 indicates that the total number of requests is 1000

-only 0 indicates the number of concurrent users is 10

Parameter description:

Concurrency level: number of concurrent users;

Time taken for tests: the total duration of the request processing;

Complete requests: total number of requests;

Failed requests: number of failed requests;

Total transferred:: Sum of all request response data lengths;

HTML transferred: The sum of the body data in all request response data;

Requests per second: a data that we are concerned about, some call "throughput rate", requests per second=complete Requests/time taken for tests

Time per request: Average request latency;

Transfer Rate: The length of data that these requests get from the server at the unit time.

Under the Apache server, use the AB command for stress testing

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.