Hi Chad,

The default max connections per host is 2 in httpclient, so that's almost
certainly what you're running into (connection pool is too small). In this
scenario you will want to increase both the max total connections and the
max connections per route.

See 
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d
4e638 for examples.

Jon
........
Jon Moore
Comcast Interactive Media






On 6/17/11 10:10 AM, "ChadDavis" <[email protected]> wrote:

>Hey,
>
>I'm not building anything with httpclient myself, but I'm performance
>testing an app that I built with a 3rd party component that makes heavy
>use
>of httpclient.  I'm trying to rule out a performance bottleneck that, to
>my
>untrained mind, seems like it might be coming from improper configuration
>or
>use of httpclient.
>
>The Problem:
>
>I have a web app that connects to a data tier server via httpclient.
>When I
>stress my web app with concurrent users I never see more than 2 TCP
>connections from the web app to the data tier, and performance degrades
>significantly.  I've read through the httpclient docs, but haven't gleaned
>enough myself to judge other folks use of the api.  What I'd like from
>someone here is to tell me whether I can take it as a sign of a httpclient
>config or usage issue that under an increased load I still only see two
>TCP
>connections.
>
>Thanks,
>Chad


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to