Re: Memory Leaks when web server hangs

2004-03-22 Thread Michael Becke
Roland Eric Bloch <[EMAIL PROTECTED]> 22.03.2004 07:03 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when web server hangs Oh... and I just want to know if t

Re: Memory Leaks when web server hangs

2004-03-21 Thread Eric Bloch
HttpClient objects? You don't have to. cheers, Roland Eric Bloch <[EMAIL PROTECTED]> 22.03.2004 07:03 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when we

Re: Memory Leaks when web server hangs

2004-03-21 Thread Roland Weber
Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when web server hangs Oh... and I just want to know if that's "not the httpclient way", too? That is, should I be reusing the client? What will that get me if I'm alread

Re: Memory Leaks when web server hangs

2004-03-21 Thread Eric Bloch
MAIL PROTECTED]> 02.02.2004 11:56 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject:Re: Memory Leaks when web server hangs Oleg, We are using JDK1.4.1 and connection time out is se

Re: Memory Leaks when web server hangs

2004-03-21 Thread Eric Bloch
ppropriate. best regards, Roland Srinivas Vemula <[EMAIL PROTECTED]> 02.02.2004 11:56 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when web server hangs Ol

Re: Memory Leaks when web server hangs

2004-03-21 Thread Michael Becke
roject <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when web server hangs Oleg, We are using JDK1.4.1 and connection time out is set to 30Ms and read time out to 60Ms. We are trying to connect to a IP Camera, and send a heart beat command to the camera to check for

Re: Memory Leaks when web server hangs

2004-03-19 Thread Eric Bloch
AIL PROTECTED]> 02.02.2004 11:56 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: Re: Memory Leaks when web server hangs Oleg, We are using JDK1.4.1 and connection time out is set to 3

Re: Memory Leaks when web server hangs

2004-02-04 Thread Srinivas Vemula
Thank you all for your inputs and time. srini Ortwin Glück wrote: Marcus Crafter wrote: The non-programatic way to fix it was to add a request header to each client request saying 'Connection: close'. You could also have written your own connection manager implementation instead of messing wit

Re: Memory Leaks when web server hangs

2004-02-02 Thread Michael Becke
Hi Srini, I want to echo Oleg's comments with one addition. (1) As Roland said please do reuse the HttpClient instance. HttpClient class is fully thread-safe. By no reusing HttpClient you completely defeat the connection keep-alive stuff HttpClient is thread safe, depending which connection man

RE: Memory Leaks when web server hangs

2004-02-02 Thread Kalnichevski, Oleg
nt) Oleg -Original Message- From: Srinivas Vemula [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 11:57 To: Commons HttpClient Project Subject: Re: Memory Leaks when web server hangs Oleg, We are using JDK1.4.1 and connection time out is set to 30Ms and read time out t

Re: Memory Leaks when web server hangs

2004-02-02 Thread Marcus Crafter
i Srini, > >>>HttpClient uses an additional controller thread to work around the > >>>limitation of older (< 1.4) JDKs which do not provide a possibility to > >>>set connect timeout. If you do not really need to control connect > >>>timeout (for

Re: Memory Leaks when web server hangs

2004-02-02 Thread Ortwin Glück
Marcus Crafter wrote: The non-programatic way to fix it was to add a request header to each client request saying 'Connection: close'. You could also have written your own connection manager implementation instead of messing with request headers. This would have been more portable to later versio

Re: Memory Leaks when web server hangs

2004-02-02 Thread Roland Weber
TECTED]> cc: Subject: Re: Memory Leaks when web server hangs Oleg, We are using JDK1.4.1 and connection time out is set to 30Ms and read time out to 60Ms. We are trying to connect to a IP Camera, and send a heart beat command to the camera to check for its availability every 30

Re: Memory Leaks when web server hangs

2004-02-02 Thread Srinivas Vemula
OTECTED] Sent: Monday, February 02, 2004 09:03 To: Commons HttpClient Project Subject: Re: Memory Leaks when web server hangs On 2/2/04 2:00 PM, "Srinivas Vemula" <[EMAIL PROTECTED]> wrote: Hi All, We are seeing thread leaks when having client open connections to a

Re: Memory Leaks when web server hangs

2004-02-02 Thread Marcus Crafter
lity) > >simply set connect timeout to. That will prevent HttpClient from spawning > >an additional thread per request. > > > >Adrian, et al > >Another possibility to use reflection to set connect timeout using the > >Socket methods when running in JVM 1.4 or ab

Re: Memory Leaks when web server hangs

2004-02-02 Thread Srinivas Vemula
to set connect timeout using the Socket methods when running in JVM 1.4 or above Oleg -Original Message- From: Adrian Sutton [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 09:03 To: Commons HttpClient Project Subject: Re: Memory Leaks when web server hangs On 2/2/04 2:00

RE: Memory Leaks when web server hangs

2004-02-02 Thread Kalnichevski, Oleg
eout using the Socket methods when running in JVM 1.4 or above Oleg -Original Message- From: Adrian Sutton [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 09:03 To: Commons HttpClient Project Subject: Re: Memory Leaks when web server hangs On 2/2/04 2:00 PM, "Srinivas

Re: Memory Leaks when web server hangs

2004-02-02 Thread Adrian Sutton
On 2/2/04 2:00 PM, "Srinivas Vemula" <[EMAIL PROTECTED]> wrote: > Hi All, > We are seeing thread leaks when having client open connections to a web > server that hangs. Has any one seen this happening?? How do we ensure that the > library correctly closes socket connections on failures, cle

Memory Leaks when web server hangs

2004-02-01 Thread Srinivas Vemula
Hi All,         We are seeing thread leaks when having client open connections to a web server that hangs. Has any one seen this happening?? How do we ensure that the library correctly closes socket connections on failures, cleaning up system resources, and threads actually finish in the ti