commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <>
Subject Re: Resource temporarily unavailable
Date Thu, 11 Sep 2003 21:56:19 GMT
It is not easy to say for certain, as it is highly dependent on the
exact details of your application design. This said I believe HttpClient
does much better job reusing open connections compared to
HttpURLConnection, thus potentially reducing the number of connections
that need to be open simultaneously. 



On Thu, 2003-09-11 at 21:26, Luciano Kiniti Issoe wrote:
> Hi,
> We are having problems due to a huge number of simultaneous TCP connections
> (netstat -n| wc -l gives 5000 lines). At some point we have a lot  of
> " Resource temporarily unavailable". My question
> is: Does HttpClient will reduce the amount of TCP connections for me? (As of
> now we are using URL.openStream to read from other sites)
> Another one: Is there any trick on Linux to enlarge the number of max open
> TCP connections. We tried to raise the /proc/sys/fs/file-max, but it worked
> just for a while...We are running on a 2 Xeon 2Gb RAM RedHat 7.2 / jdk 1.4.2
> / tomcat 4.1.12
> Thanks and regards,
> Luciano Kiniti Issoe
> Webraska do Brasil
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message