Apache AB pressure test

Source: Internet
Author: User

Today, referring to the stress test, think of the previous AB, and then re-find the next information, and recorded the next.

The AB command creates many concurrent access threads, simulating multiple visitors accessing a URL address at the same time.

Its test target is URL-based, so it can be used to test the load pressure of Apache, as well as other Web servers such as Nginx, Lighthttp, Tomcat, and IIS.

The AB command is very low on the computer that emits the load, does not occupy a high CPU, and does not consume a lot of memory, but it can cause a huge load on the target server, which is similar to the CC attack. The use of their own testing should also be noted, or too much load at a time, may cause the target server due to resource consumption, serious even caused the crash.

Format: AB [options] [http://]hostname[:p ort]/path

Common parameter Description:
-N requests number of requests to perform
The number of requests executed in the test session (the total number of times the page was visited for this test). By default, only one request is executed.
-c concurrency number of multiple requests to make
The number of requests produced at one time (number of concurrent). The default is one at a time.
-T TimeLimit Seconds to Max. Wait for responses
The maximum number of seconds the test takes. Its internal implied value is-n 50000. It allows you to limit the testing of the server to a fixed total time. By default, there is no time limit.

Ab-n 4000-c http://www.ha97.com/

The 4000 after-N represents a total of 4,000 requests, and the 1000 behind the-C means 1000 concurrent (simulating 1000 people simultaneous access), followed by a URL that represents the destination of the test

Apache AB pressure test

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.