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

apache-2.2lamplinuxPHP

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

Best Answer

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

Related Topic