TransWikia.com

Apache rejecting connections (for high number of connections from the same ip)

Server Fault Asked by Adrime on January 5, 2021

I’m doing some load test over a LAMP server, but for very high load (high number of connections) tests the it stats to refuse the connections. What I must do for allow all the incoming connections from the same client?

This is the exception in the java Threads:

Caused by: java.net.ConnectException: Connection refused: connect

2 Answers

You're probably going to need to change the maxclients setting in your apache config file.

Documentation is here: http://httpd.apache.org/docs/1.3/mod/core.html#maxclients

and keep in mind that if you want to push the limit above 256 clients, you need to edit the HARD_SERVER_LIMIT

Answered by Ben D on January 5, 2021

It appears that apache can hold so many conection at the same time, so it starts reject some of them, which it can't coupe with. And it doesn't depend whether they are from 1 IP or not.

Answered by Seagull on January 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP