hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: DO NOT REPLY [Bug 28296] - [API Doc] Compile performance optimization guide
Date Thu, 13 Jan 2005 08:48:52 GMT

Oleg Kalnichevski wrote:
> Odi, Mike
> Even though the garbage collection in modern JVMs has improved
> dramatically and these days can possibly be considered neglegble,
> there's still a very real problem with garbage collection of open
> sockets. In some cases this can cause a substantial resource leak.
> I believe this is exactly the problem Jeanremi has been having 
> http://mail-archives.apache.org/eyebrowse/ReadMsg?listName=httpclient-dev@jakarta.apache.org&msgNo=9728
> This said, I see no problem in rephrasing this particular section of the
> guide.
> cheers,
> Oleg

Morning Oleg,

This is right of course, but sockets are not subject to the GC. GC is 
for memory only. Not a general resource manager. The finalizer may be 
(ab|over)used for more general resource management though. That's why I 
would stress the open socket problem more, and the GC less.


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

View raw message