Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: Connection refused: connect
share|improve this question

migrated from 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

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:

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


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.