Apache comes with the AB Stress Testing Tool Windows configuration instructions, apacheab

Source: Internet
Author: User

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.

 

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.