AB pressure test error: Apr_socket_recv:connection reset by Peer (104)

Source: Internet
Author: User
Tags connection reset

Use AB to stress test the site, start setting concurrency 500, can be used normally, when the set concurrency is 1000, then the error:

Apr_socket_recv:connection Reset by Peer (104)

To change the server Apache maxclients parameters, the maximum number of open files, do not solve the problem, finally found is because AB's source code on the concurrency of AB limit, modify the source code to recompile Apache:

Modify the source support directory Ab.c file, about 1369 lines, modified to:

Return
} else {
Apr_err ("Apr_socket_recv", status);
bad++;
Close_connection (c);
Return
}

Finally paste the parameters of AB using:

/usr/local/apache2/bin/ab-c 3000-n http://192.168.1.43/index.html

Http://blog.chinaunix.net/uid-24443760-id-3758092.html

AB pressure test error: Apr_socket_recv:connection reset by Peer (104)

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.