On Thu, Jan 05, 2006 at 08:38:11AM +0100, Kim B. Andersen wrote: > Hi > > hope it's readable > > First hour > > 2006/01/03 14:46:49:926 CET [DEBUG] HttpConnection - Open connection to > fastnetselvbetjening.tdconline.dk:443 > 2006/01/03 14:46:50:038 CET [DEBUG] header - >> "GET /Krump/Alivetest.do?ws > HTTP/1.1[\r][\n]" > > After the first hour > > 2006/01/04 07:58:50:230 CET [DEBUG] HttpConnection - Open connection to > fastnetselvbetjening.tdconline.dk:443 > 2006/01/04 07:58:59:230 CET [DEBUG] header - >> "GET > /Krump/Alivetest/alivetester1.html HTTP/1.1[\r][\n]" >
Kim, Apparently the 9sec delay is caused by the SSL related stuff. Most likely for some reason the SSL handshake takes some time. How do you configure the SSL context on the clietn side? Oleg > Kim Andersen > -----Oprindelig meddelelse----- > Fra: Ortwin Gl?ck [mailto:[EMAIL PROTECTED] > Sendt: 4. januar 2006 17:19 > Til: HttpClient Project > Emne: Re: Slow to open connection after an hour or so > > > My ideas: > * Anything in the logs? > * Is there a chance that you are exhausting the connection pool by never > returning your connections? New connection requests would then block > until one gets available > * Maybe attach a debugger / profiler or use jconsole > > Hell, it would be nice if HttpClient had some JMX beans to provide > information about pools etc. at runtime. I'll add that as a requirement > for 4.0. > > Odi > > Kim B. Andersen wrote: > > Hi > > > > I'm devolping a program which grabs webpage every 5min and measure the > > time it takes. I have succesful used httpclient to get the pages and it > > works fine:). The problem is opening of connection in httpclient get > > very slow after and hour or so.The first hour opening a connection takes > > 50ms at max and after an hour it takes 10 seconds. Opening of connection > > gets fast if I restarte the program. Any Ideas what the problem could > > be? > > > > I have tried the following/uses: > > > > jvm version: 1.5.0_6/1.4.2_05 > > httpclient: 3.0 rc4/ 3.0 rc4 > > I have tried both with proxy and out > > I have tried both MultiThreadedHttpConnectionManager and simple > > > > Hope you can help me > > > > /Kim Andersen > > > > -- > [web] http://www.odi.ch/ > [blog] http://www.odi.ch/weblog/ > [pgp] key 0x81CF3416 > finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
