1.AB tools are Apache's own tools to test server load capacity
Parameters for 2.ab Tools
-V: Version
-C: Concurrency number
-N: Number of requests
-T: Maximum number of seconds to test
3. Example: Ab-c 100-n 100-t 10 requested destination address
Ab-c 100-n 100-t http://127.0.0.1/index.php
The test results are also at a glance and the throughput rate tested is:requests per second:2015.93 [#/sec] (mean) There is some other information out there for the first time.
Server Software represents the Web server software name being tested
Server Hostname represents the requested URL host name
Server Port indicates the listening port of the Web server software being tested
Document Path represents the root absolute path in the requested URL, and with the suffix of the file, we can generally understand the type of the request
Document length indicates the body size of the HTTP response data
Concurrency level represents the number of concurrent users, which is one of the parameters we set
Time taken for tests indicates the total amount of times that all these requests have been processed to complete
Complete requests represents the total number of requests, which is one of the parameters we set
Failed Requests represents the number of failed requests, where the failure is the case where the request is in connection with the server, sending data, and so on, and when there is no response time out. If the header information of the received HTTP response data contains a status code other than 2XX, another statistic named "Non-2xx responses" is displayed in the test results to count the number of requests that are not counted in the failed request.
Total transferred represents the sum of the response data lengths for all requests, including the header information for each HTTP response data and the length of the body data. Note that this does not include the length of the HTTP request data, only the total length of the application layer data that the Web server flows to the user's PC.
The HTML transferred represents the sum of the body data in all the requested response data, minus the length of the header information in the HTTP response data in total transferred.
Requests per second throughput rate, calculation formula: Complete Requests/time taken for tests
Time per request user average request latency, calculation formula: Times token for tests/(complete requests/concurrency level)
Time per Requet (across all concurrent requests) the average request latency of the server, calculated by the formula: Timing taken for tests/complete requests, is exactly the reciprocal of the throughput rate. You can also count: Time per request/concurrency level
Transfer Rate represents the length of data that these requests get from the server within a unit time, calculating the formula: Total Trnasferred/time taken for tests, which is a good statistic when the server's processing power reaches its limit. The demand for its export broadband.
Percentage of requests served within a certain time (MS) This data is used to describe the distribution of each request processing times, such as the above test, 80% of the request processing time is not more than 6ms, This processing time refers to the previous time per request, that is, for a single user, the average processing times for each of the requests.
Apache Load Test Tool AB