This also looks like something external to JMeter.

I'm not familiar with the details of HTTPClient, but the method name
readStatusLine() suggests that the data has been successfully
uploaded, and that JMeter is waiting for the remote server to respond.

All I can suggest now is that you run several instance of JMeter, each
with 5 threads - because you know that JMeter and the server can cope
with 5 threads.

If the problems continue, then this seems to me that the problem lies
with the server - or perhaps the network. It might be worth trying to
run JMeter from more than 1 system.

S.
On 21/05/06, Richa Pant <[EMAIL PROTECTED]> wrote:
Hi,

  Thanks for the inputs.
  I tried with the latest nightly build of 2006-05-21.
  Tried running the test case first with using sampler 'HTTP Request' and then 
'HTTP Request HTTP Client'. The requests are  failing in both with the 
following exception,
  ................................................................
  java.net.SocketException: Connection reset
 at java.net.SocketInputStream.read(Unknown Source)
 at java.io.BufferedInputStream.fill(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
 at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
 at 
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
 at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
 at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
 at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
 at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
 at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
 at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:573)
 at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:609)
 at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:598)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:246)
 at java.lang.Thread.run(Unknown Source)
  ........................................................................

  With the previous Version 2.1.1 build, the exceptions were,

  java.io.IOException: Stream closed
> at java.io.BufferedInputStream.getInIfOpen(Unknown Source) at
> java.io.BufferedInputStream.read1(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

  AND

  java.net.ConnectException: Connection timed out: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.net.NetworkClient.doConnect(Unknown Source)
 at sun.net.www.http.HttpClient.openServer(Unknown Source)
 at sun.net.www.http.HttpClient.openServer(Unknown Source)
 at sun.net.www.http.HttpClient.<init>(Unknown Source)
 at sun.net.www.http.HttpClient.New(Unknown Source)
 at sun.net.www.http.HttpClient.New(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown 
Source)...


  Any help is greatly appreciated,
  Regards,
  Richa



sebb <[EMAIL PROTECTED]> wrote:
  The failure is in the readResponse() method, which suggests that the
server is having problems responding.

Might be worth trying the latest nightly version of JMeter, as I made
some changes to the handling of readResponse() failures to prevent
them propagating to other threads.

I'm not sure that this error can be avoided by any changes to JMeter -
in the (limited) tests I did, it would wait for as long as necessary
for the response to come back. However, there may be something that
can be done.

It might also be worth running multiple JMeter instances. This should
show whether the problem is in JMeter or the server.

Also, as Oliver said, try the HTTP Client version. You'll probably
need the latest nightly for this, as there are several fixes in it.

S.
On 21/05/06, Oliver Erlewein (DSLWN) wrote:
> Hi
>
> Do you use "HTTP Client" or "HTTP Request HTTP Client"? My tip is, that
> the connection times out from the Jmeter side but that all depends on
> which sampler you're using.
>
> Cheers
> Oliver
>
> -----Original Message-----
> From: Richa Pant [mailto:[EMAIL PROTECTED]
> Sent: Sunday, 21 May 2006 12:51
> To: [email protected]
> Subject: Getting Exception "java.io.IOException: Stream closed"
>
> Hi ,
>
> I created a JMeter test case in which each thread tries to upload total
> of 1MB of data (divided into files of 50KB each ) to Remote Server. I
> tried with varying no of threads with Ramp Up period as 0, since I
> wanted to test simltaneous hits.
> The test cases went fine if I connected on LAN speed of 100Mbps.
> When I throttled the LAN bandwidth using " Soft Perfect Bandwidth
> Manager " to 70Kbps, to simulate slower connection, the Test Cases with
> upto 5 threads goes fine , but after that some requests starts throwing
> the following Exception. The no of requests failing with this exception
> increases with no of threads an by 30 threads all the request are
> failing.
>
> java.io.IOException: Stream closed
> at java.io.BufferedInputStream.getInIfOpen(Unknown Source) at
> java.io.BufferedInputStream.read1(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(HTTPSam
> pler.java:235)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.j
> ava:449)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
> erBase.java:514)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
> erBase.java:503)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> at java.lang.Thread.run(Unknown Source)
>
> ....................
>
>
> Any help in the direction, is greatly appreciated,
>
> Regards,
> Richa
>
> ---------------------------------------------------------------------
> 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]



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to