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]