In 11/05/06, Oliver Erlewein (DSLWN) <[EMAIL PROTECTED]> wrote:
Hi sebb,
OK, here goes....
In jmeter.property there is a variable "httpclient.timeout". The HTTP
client never references this (this is the HTTP Sampler). HTTP Sampler2
does. i.e. that means, that when you run your test and have long
response times HTTP Sampler will time out after ~5 minutes although the
profiles say it should not. HTTP Sampler 2 (i.e. HTTP Request
HTTPClient) does. The error seen in HTTP Sampler looks like the one
mentioned. The session got closed. The stupid thing is, that it closes
the whole thread too. This means that your test slowly whithers away.
I had not appreciated that aspect of the problem.
It should be possible to fix that; I'll have a look later.
Sebb, just look at how httpclient.timout gets used and you should see
this in the code.
As far as I know, it's not possible to override the socket timeout
setting in the default HTTP case, which is why the code does not do it
...
So I don't think anything can be done about the _original_ cause of
the problem, but we should be able to stop it from stopping the whole
test.
Cheers Oliver
-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Thursday, 11 May 2006 23:47
To: JMeter Users List
Subject: Re: Getting "java.io.IOException: Stream closed at
java.io.BufferedInputStream.ensureOpen(Unknown Source)
On 11/05/06, Oliver Erlewein (DSLWN) <[EMAIL PROTECTED]>
wrote:
> Hi sebb + Tapaswini,
>
> As a matter of fact it is a Jmeter problem. We've had the same problem
> and it has to do with the timeouts. HTTP Request does not use the
> timeouts. HTTP Request HTTPClient (Sampler2) does. So if you use the
> other sampler the problem will probably go away. We're still doing
> some investigation on this and I'll try and come back with aproperly
> formulated defect. Oh....and this is Jmeter 2.1.1.
Not sure I follow how the lack of a timeout can cause the stream closed
error - can you elaborate?
It may not be possible to completely avoid the problem in the HTTP
Sampler, but perhaps there is something that could be done.
> Cheers
> Oliver
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 10 May 2006 21:56
> To: JMeter Users List
> Subject: Re: Getting "java.io.IOException: Stream closed at
> java.io.BufferedInputStream.ensureOpen(Unknown Source)
>
> On 10/05/06, Tapaswini Das <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> >
> >
> > I'm using JMeter 2.0.3 and 2.1 for load testing for running 30
> > threads
> >
> >
> >
> > Please any one tell me why I get the errors like
> >
> >
> >
> > "java.io.IOException: Stream closed at
> > java.io.BufferedInputStream.ensureOpen(Unknown Source) at
> > java.io.BufferedInputStream.read(Unknown Source) at
> > java.io.FilterInputStream.read(Unknown Source) at
> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTT
> > PS
> > ampler
> > .java:263) at
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler
> .j
> ava:
> > 496) at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPS
> > am
> > plerBa
> > se.java:590) at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPS
> > am
> > plerBa
> > se.java:578) at
> > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281) at
> > java.lang.Thread.run(Unknown Source) "
>
> JMeter could not read the response because the remote server closed
> the connection. This is not a JMeter problem; it is just reporting the
> error.
>
> > We have already gone ahead with JMeter and relying heavily on this
> > tool. We need this URGENTLY as our release deadline is approaching
> > and
>
> > at this point we just cannot go back. We request you to please help
> > us
> out ASAP.
>
> You need to look at your server logs to find out what is happening.
>
> S.
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
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]