You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Zoltan Bencik <zo...@gmail.com> on 2009/11/22 07:55:35 UTC
Question on max connection limit
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.
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
Re: Question on max connection limit
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2009-11-23 at 16:09 +0500, Zoltan Bencik wrote:
> Hello Oleg,
>
> Thanks for response.
> Can you please let me know what's the default value for
> http.conn-manager.max-total parameter?
>
20
Oleg
> br,
> -zoltan.
>
> Oleg Kalnichevski wrote:
> > 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
Re: Question on max connection limit
Posted by Zoltan Bencik <zo...@gmail.com>.
Hello Oleg,
Thanks for response.
Can you please let me know what's the default value for
http.conn-manager.max-total parameter?
br,
-zoltan.
Oleg Kalnichevski wrote:
> 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
>>
>>
>
>
>
>
Re: Question on max connection limit
Posted by Oleg Kalnichevski <ol...@apache.org>.
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