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: Question on max connection limit
Date Mon, 23 Nov 2009 10:49:07 GMT
On Sun, 2009-11-22 at 11:55 +0500, Zoltan Bencik wrote:
> Dear All,
> 
> I've currently set the following parameter during http client 
> initialization:
> params.setParameter("http.conn-manager.max-total", 5);
> 
> Is this correct way to limit the maximum connection number?
> Because by analyzing the network stats, I always see that there are only 
> 2 connections
> are used to the remote host all the time.
> I just wonder if I understood correctly the tutorial and set proper 
> parameter to limit
> max. connection number.
> 

Zoltan

You also need to increase the max connections per route limit. Per
default it is set to 2 connections.

Oleg 

> Any help is highly appreciated, thanks.
> 
> br,
> -zoltan.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 



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


Mime
View raw message