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]

Reply via email to