hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HttpClient Performance Issues
Date Tue, 19 Jul 2011 15:00:03 GMT
On Tue, 2011-07-19 at 09:41 -0400, Bill Speirs wrote:
> I dug deeper into the performance issues I was having... they were all
> disk related.
> 
> Attached is a new graph of 1,000 requests, 100 at a time through my
> code. It plots having logging enabled and disabled, and registering
> and not registering the https scheme. In summary, logging (which I
> forgot was also going to disk) turned out to be the biggest culprit.
> As the filesystem is on NFS, writing to disk was slowing everything
> down quite a bit (as can be seen in red). However, what I found
> interesting was the impact of adding the https scheme to the client.
> This was causing great pain for my initial connections as all of the
> SSL certificate stores needed to be read and parsed in preparation for
> a possible SSL handshake/connection. This can be seen in green; the
> high numbers in the start.
> 
> With both logging and SSL disabled, I'm able to see ~10K requests per second.
> 
> I'm putting this out there as it is hopefully a help to anyone else
> having performance issues... check what you're reading/writing to
> disk!
> 

I should have thought of it. This is a very common mistake. I also had
to learn it the hard way.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message