RE: HttpClient and CPU usage.....

2003-03-27 Thread Ken Clark
: Re: HttpClient and CPU usage. Busy wait has been fixed after 2.0a3 release. So, a recent nightly build is needed. Besides, it turned out that Ken was using a rather old JDK (1.2) which is known to have rather lousy JIT on Solaris platform. I have already recommended Ken to upgrade both the JDK

RE: HttpClient and CPU usage.....

2003-03-26 Thread Sergio Berna
Can you describe the algorithm your application is performing? Im asking because it seems to me that all the algorithm time is spent on the native socket classes from the jdk and not from the httpclient. If so you should consider some sort of caching to improve your performance. -Mensaje

Re: HttpClient and CPU usage.....

2003-03-26 Thread Tom Samplonius
What version of httpclient are you using? I understand that a busy read loop was removed from httpclient a couple of weeks ago. I'm not sure if this change was made for Alpha3, or whether you have to go the daily builds to get it. Tom On Wed, 26 Mar 2003, Ken Clark wrote: I've built a

Re: HttpClient and CPU usage.....

2003-03-26 Thread Sam Maloney
Good call Tom, this is most definatly the problem! As the 'busy loop' that has been fixed that you speak of would have caused this EXACT occurance. The bug caused HttpClient to continually call the Socket's 'int InputStream-read()' over and over even though the socket is allready closed (the

Re: HttpClient and CPU usage.....

2003-03-26 Thread Oleg Kalnichevski
Busy wait has been fixed after 2.0a3 release. So, a recent nightly build is needed. Besides, it turned out that Ken was using a rather old JDK (1.2) which is known to have rather lousy JIT on Solaris platform. I have already recommended Ken to upgrade both the JDK and the HttpClient Cheers Oleg