commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <>
Subject Re: [HttpClient] Bad performance with multiple request to same host ?
Date Mon, 30 Sep 2002 07:33:19 GMT
 From RFC2616:

Clients that use persistent connections SHOULD limit the number of 
simultaneous connections that they maintain to a given server. A 
single-user client SHOULD NOT maintain more than 2 connections with any 
server or proxy.

These guidelines are intended to improve HTTP response times and avoid 

We can, however, introduce a configuration key for this in the (future) 
config architecture of http client. Default will be 2 per client.


Aurélien Pernoud wrote:
> Personnaly I've been overwriting the HttpMultiClient (copying it and using
> mine) and using my own HttpConnectionManager on which I simply increased the
> total number of allowed connections on a site this way :
> private HttpConnectionManager mgr = new HttpConnectionManager();
> mgr.setMaxConnectionsPerHost(100);
> This way I allow 100 connections to the host, and performances are better.
> But I think that in HttpMultiClient their should be getter on the
> connectionmanager that is private :-(
> Well now that we are two users interested, maybe they will modify it ?
> Someone can please tell us from commons-dev ?
> Thanx,
> Aurélien Pernoud

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message