hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Memory issues with long connections?
Date Thu, 29 May 2003 21:06:42 GMT

HttpClient is a pure Java application and as such does not manage memory
allocation directly. I suggest that you check if there are any known
issues with the jvm you are using. Upgrading to HttpClient beta-1 would
not hurt, anyways.


On Thu, 2003-05-29 at 16:36, Jan Gonsalves wrote:
> Does anyone know of any memory issues with opening a connection and 
> continuely re-using it, only closing it when a socket timeout happens? 
> I'm currently using ALPHA 3.  I have to "fake out a browser" and 
> navigate through a website to extract information because they don't 
> offer a straight DB connection.  I re-use this connection the whole 
> time, never closing it, only recycling it, unless I get a socket 
> timeout, ConnectionException, or HTTPRecoverableException.  Our 
> Production server has 4GB of ram.  Last night we ran and the system went 
> down to 4MB free, 4!  I'm just wondering if I'm leaking due to HTTP 
> Client.  I've gone over my stuff and it looks relatively solid, I'm 
> wondering now if I'm using HttpClient incorrectly.  Does Beta 1 help 
> with any memory issues?
> Jan Gonsalves
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message