The Apache server uses the AB command for stress testing

Source: Internet
Author: User

AB is the Apache Hypertext Transfer Protocol (HTTP) performance testing tool. The intent is to depict the execution performance of the currently installed Apache, primarily to show how many requests can be processed per second by your Apache installation.

#ab-V to see its basic information

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

This is a basic command.

-n1000 represents a total request of 1000

-only 0 represents a concurrent user number of 10

Parameter description:

Concurrency level: number of concurrent users;

Times taken for tests: total time spent requesting processing;

Complete requests: total number of requests;

Failed requests: number of failed requests;

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

HTML transferred: Total body data in all request response data;

Requests per second: is a data that we are very concerned about, some people call "throughput", Requests/Second=complete Requests/time taken for tests

Time per request: Average requests waiting times;

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

# ab-c L-n 10000 http://127.0.0.1/index.html

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.