hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <mbe...@gmail.com>
Subject Re: MultiThreadedHttpConnectionManager
Date Sat, 18 Jun 2005 16:03:40 GMT
It sounds like connections are not being released.  Please have a look
at <http://jakarta.apache.org/commons/httpclient/3.0/threading.html>
for examples of how to use the MultiThreadedHttpConnectionManager.

Mike

On 6/18/05, Thomas L. Redman <redman@ncsa.uiuc.edu> wrote:
> I am having difficulty using the MultiThreadedHttpConnectionManager
> to support a multithreaded download environment. I have several
> threads attempting to download URLS simultaneously. At some point, it
> hangs. When I do a thread dump (Ctl-\), I see all my threads are
> blocked as the following stack trace indicates:
> 
>          at java.lang.Object.wait(Native Method)
>          - waiting on <0x49bd5f50> (a
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool)
>          at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:461)
>          - locked <0x49bd5f50> (a
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool)
>          at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnection(MultiThreadedHttpConnectionManager.java:365)
>          at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:613)
>          at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
> 
> I would surmise from this that I am not releasing my connections
> property. Would this be the problem or are there other things that
> could cause this?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
>

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


Mime
View raw message