hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Wolff" <two...@austin.rr.com>
Subject Re: Performance Issue
Date Sun, 27 Jul 2003 01:36:06 GMT
Thanks for the reply Oleg.  I tried setUseExpectHeader(true) as suggested,
but no improvement.  I ran the exact same test with all else held equal
except the httpclient libs used (alpha3 vs. beta2) and I've attached the
debug logs.  I've also attached the code.  (No security constraint was used
this time, so authorization shouldn't have anything to do with it.)

I've been looking at this all day and can't see the reason for the
difference.  Also, although unrelated to the relative decrease in
performance, I did notice that in both tests a new connection is created per
request.  Is there anything I can do to encourage re-use?


Gracias,

Todd



----- Original Message -----
From: "Oleg Kalnichevski" <olegk@apache.org>
To: "Commons HttpClient Project" <commons-httpclient-dev@jakarta.apache.org>
Sent: Saturday, July 26, 2003 1:48 AM
Subject: Re: Performance Issue


> I think I tell the reason even without having seen the code. Since
> beta-1 'expect: 100-continue' handshake is off per default, that can
> make a huge difference in terms of performance with POST requests that
> require authentication.
>
> Just do the following
>
> httppost.setUseExpectHeader(true);
>
>
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/http
client/methods/ExpectContinueMethod.html
>
> Alternatively you could use preemptive authentication.
>
> I hope this helps
>
> Cheers
>
> Oleg
>
>
> On Sat, 2003-07-26 at 05:35, Todd Wolff wrote:
> > Hi,
> >
> > After upgrading from 2.0-alpha3 to 2.0-beta2, instead of roughly 10
> > requests per second, I am averaging only 3 requests per second.  I was
> > hoping someone could take a look at the attached code and show me the
> > 'error of my ways.'  My test is multithreaded, and all requests are
> > sent to the same host.  I am setting MaxConnectionsPerHost equivalent
> > to the number of sending threads.  The auth-method required by the
> > server is BASIC.
> >
> > Thanks for your help.
> >
> >
> >
> > Todd
> >
> > ______________________________________________________________________
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
>

Mime
View raw message