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