Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
share|improve this question

migrated from stackoverflow.com Jan 31 '12 at 13:49

This question came from our site for professional and enthusiast programmers.

    
How have you configured the webserver? How many client connections are you trying to create? –  symcbean Jan 31 '12 at 14:04

2 Answers 2

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.

share|improve this 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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.