Hello Iris, > We have built a small application based on Apache Httpclient to test the > speed of our database connection. The problem is that we get 'Connection > refused' errors at completely unpredictable moments. > > We're creating 50 threads that each wait for a random number of miliseconds > and then do this: > > Sometimes it starts throwing exceptions that look like this: > > 29-sep-2006 9:53:19 org.apache.commons.httpclient.HttpMethodDirector > executeWithRetry > INFO: I/O exception (java.net.ConnectException) caught when processing > request: Connection refused: connect > > I have been digging through the mail archives and trying to figure this one > out for more than a week but I still don't understand > what *really* causes a 'connection refused'. I guess that is because there > may be many different causes.
Connection refused happens on the transport layer below HTTP. Check the number of simultaneous connections your HTTP server and/or application server can accept or queue. hope that helps, Roland
smime.p7s
Description: S/MIME Cryptographic Signature
