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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
