Apache comes with the AB Stress Testing Tool Windows configuration instructions, apacheab
Let's take a look at the concept of the AB tool from the network:
AB is an apache stress testing tool. AB is very practical. It can not only perform Website access stress tests on apache servers, but also perform stress tests on other types of servers. For example, nginx, tomcat, and IIS.
1. Download and install Apache
Windows: http://www.apachehaus.com/cgi-bin/download.plx
Select Based on System Version
After the download, decompress the package to the Apache folder on drive C, run the command to the bin directory of Apace, and enter httpd-k install to complete the installation.
Ii. Configuration
Modify the Apache Port:
If it is deployed in windows, port 80 is already occupied by iis. In this case, modify conf/httpd. conf to find listen 80 and change it to the port you want to set, for example, 8090.
3. Start testing
In cmd enter: AB-n 100-c 10 http://so.com/index
Here,-n indicates the number of requests,-c indicates the number of concurrent requests, and index indicates path. This is necessary, indicating that the test address is specified. If this parameter is not specified, an error "AB: invalid url" may be reported, you can test it.
Iv. Problems
1. Apache cannot be started. The error log "ServerRoot must be a valid directory" is displayed in the Widnows log, indicating that the file path configuration of Apache is incorrect. It can be found in httpd. in conf, check whether the path configured by ServerRoot is the same as that configured by you. After you change it to the correct path, it can be started normally.
The article only records the problems that may occur during installation and use. As for the detailed introduction of tools, there are many articles in the garden that can be searched for, so they are not excerpted.