hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37161] New: - MultiThreadedHttpConnectionManager unreliable and slow
Date Wed, 19 Oct 2005 10:56:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37161>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37161

           Summary: MultiThreadedHttpConnectionManager unreliable and slow
           Product: HttpClient
           Version: 3.0 RC4
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: aioaneid@gmail.com


With only 100 threads connecting to a tomcat on localhost, and 
maxConnectionPerHost=5000, maTotalxConnections=6000 it performs about 900 
requests per second and after some time I get ConnectionPoolTimeoutException. 
And yes I do call httpClient.releaseConnection in a finally block. With the 
same configuration 100 threads each one with its own HttpClient and 
SimpleHttpConnectionManager performs about 1200 requests/second and works 
reliably. Moreover, cpu usage with the multithreaded manager is low, while 
with the simple manager it is 97%. I monitors the application with jconsole 
and it seems that most threads wait for some time in the location indicated 
below:

Name: Thread-10
State: TIMED_WAITING on 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ConnectionPool
@1922f46
Total blocked: 14  Total waited: 514

Stack trace: 
java.lang.Object.wait(Native Method)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnectio
n(MultiThreadedHttpConnectionManager.java:509)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionW
ithTimeout(MultiThreadedHttpConnectionManager.java:394)
org.apache.commons.httpclient.HttpMethodDirector.executeMethod
(HttpMethodDirector.java:152)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message