hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy <andrh...@hotmail.com>
Subject RE: MultiThreadedHttpConnectionManager general question
Date Sat, 04 Dec 2010 17:20:02 GMT

Great that helps, thank you!

> Date: Sat, 4 Dec 2010 16:23:08 +0000
> Subject: Re: MultiThreadedHttpConnectionManager general question
> From: sebbaz@gmail.com
> To: httpclient-users@hc.apache.org
> 
> On 4 December 2010 15:28, Andy <andrhahn@hotmail.com> wrote:
> >
> > Hi,I would like to use HttpClient in a multi-threaded environment so I am looking
at using the MultiThreadedHttpConnectionManager.I read the document at:  http://hc.apache.org/httpclient-3.x/threading.htmlBut
I am still not quite sure what these options mean or what how they are different:  maxConnectionsPerHost
and maxTotalConnections
> 
> maxConnectionsPerHost means what it says - the maximum number of
> connections allowed to the same host.
> Likewise maxTotalConnections is the overall connection total, for all hosts.
> 
> > My goal is to bulk load (call a web service) 5,000 requests, using a max of 50 threads
at a time.
> > Can anyone help clarify?   Thanks-
> >
> 
> If there is one host involved, set both maxima to the same number, in
> this case at least 50.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message