hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Memory Leaks when web server hangs
Date Mon, 02 Feb 2004 13:44:56 GMT
Hi Srini,

I want to echo Oleg's comments with one addition.

> (1) As Roland said please <strong>do reuse</strong> the HttpClient 
> instance. HttpClient class is fully thread-safe. By no reusing 
> HttpClient you completely defeat the connection keep-alive stuff

HttpClient is thread safe, depending which connection manager is used.  
By default the SimpleHttpConnectionManager is used by HttpClient.  This 
connection manager is not thread safe, though it can be replaced with 
the MultiThreadedHttpConnectionManager which is.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message