hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthik K <karthikkato...@gmail.com>
Subject Re: Number of HTTP connections are increasing rapidly
Date Wed, 30 Jun 2010 03:49:15 GMT
On Wed, Jun 30, 2010 at 6:04 AM, Sam Crawford <samcrawford@gmail.com> wrote:

> Two suggestions (assuming you're on version 4.x):
>
> 1) Enable logging for your application and post what logs you can
> here. Enabling logging is described on
> http://hc.apache.org/httpcomponents-client-4.0.1/logging.html. For
> your issue, I'd suggest the "connection management" logging approach
> may be the most appropriate.
> 2) Check that whenever you're fetching data from a remote web server
> you're either reading the InputStream from the entity completely or
> are calling entity.consumeContent(). If you do not do this, the
> connection will not be closed.
>
> Thanks,
>
> Sam
>
>
> Thanks Sam, i was not reading the stream, fixed it now :)
>


>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message