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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
