hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Performance problem with multiple requests to the same server simultaneously
Date Mon, 05 Apr 2010 10:12:02 GMT
On Mon, 2010-04-05 at 00:20 -0400, zxtonl@gmail.com wrote:
> Used multiple threads to connect to the same server (httpcomponents-client 
> 4.0.1). Each thread represents an account on the server and has different 
> username/password combination, so different cookies. Normally 1000 threads are 
> used. The problem is, even though I configured the ThreadSafeClientConnManager 
> to use 2000 connections, it seems that it only used 2 to 3 connections at the 
> same time (I used fiddler to check it). 1000 requests (one request per thread) 
> takes about 500 seconds to complete. Unacceptable performance. Most probable 
> reason is incorrect configuration. I'm new to network programming and 
> httpcomponents, and I can not figure out and solve the problem.  Your help is 
> much appreciated. 

Maximum of two concurrent connections to the same host is a requirement
of the RFC 2616. You can increase the limit of maximum connections per
host, if desired, as described here: 



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

View raw message