Roland, Thanks for the info. I set the conn count to 2000 just to make sure there was enough connection overhead. I'm actually using only about 4 dedicated download threads per jvm, although I may increase that number significantly after I get these issues worked out.
I just changed the code to use a new HostConfiguration as well as HttpState per request. I assume the HttpState object is lightweight to construct, but is the HostConfiguration similarly lightweight? I use an HttpURL object created from the download url string as a constructor parameter to the HostConfiguration. Does this do any inherent DNS resolution the the standard java URL class does? Here is a new code fragment that leads to the execute call: (url is the full string of the object I want to download, i.e. http://www.adobe.com/reader.zip) HttpURL hurl = new HttpURL(url); HostConfiguration config= new HostConfiguration(); config.setHost(hurl); int statusCode = httpClient.executeMethod(config,method,new HttpState()); I understand now what I seemed to be collecting too many cookies, although I am still confused why I was collecting any of them at all, given that I seet the cookie policy to ignore before executing every request, i.e.: method.getParams().setCookiePolicy(CookiePolicy.IGNORE_COOKIES); Anyway, thanks again...I just restarted the system, we'll see how long it survives this time ;) -George --- Roland Weber <[EMAIL PROTECTED]> wrote: > The connection manager is configured for 2000 > connections, is this > also the number of threads you are using > simultaneously? > > If performance is an issue for your application, you > should call > httpClient.execute(HostConfiguration, HttpMethod, > HttpState) > with a dedicated state for each thread or a new > state for each > request, depending on your usage scenario. > Otherwise, all of your > threads will collect the cookies they receive in the > same default > state. Access to the default state is synchronized, > and searching > for matching cookies in the whole collection could > eventually > serialize all of your requests. That's on top of the > delay for > searching through all the cookies by string-matching > host names. > > hope that helps, > Roland > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
