On 4 December 2010 15:28, Andy <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
