You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Niraj <ni...@gmail.com> on 2012/07/11 13:03:53 UTC

Error while running Jmeter script

Hello All,

I am running a Jmeter script in version 2.6. After running script in result
tree i am getting below mentioned error. But this error is not coming to
any specific request. I am getting this error for any random request. If i
ran test 1st time i am getting error for one png request. In next run same
png request passed successfully and error is seen for some different
request.

Can someone please help me to resolve this issue?

java.net.SocketException: Connection reset at
java.net.SocketInputStream.read(SocketInputStream.java:168) at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
sun.net.www.MeteredStream.read(MeteredStream.java:116) at
java.io.FilterInputStream.read(FilterInputStream.java:116) at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676)
at
org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:99)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at
java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
java.io.FilterInputStream.read(FilterInputStream.java:90) at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1620)
at
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:236)
at
org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.readResponse(HTTPJavaImpl.java:282)
at
org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:512)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) at
java.lang.Thread.run(Thread.java:662)

Thanks,
Niraj

Re: Error while running Jmeter script

Posted by Niraj <ni...@gmail.com>.
Nope. Is it because of Ping server or it's a Jmeter issue?

On Wed, Jul 11, 2012 at 7:59 PM, ZK <st...@gmail.com> wrote:

> Do you have a load balancer?
>
>
> ZK
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Error-while-running-Jmeter-script-tp5713976p5713980.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Error while running Jmeter script

Posted by ZK <st...@gmail.com>.
Do you have a load balancer?


ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Error-while-running-Jmeter-script-tp5713976p5713980.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Error while running Jmeter script

Posted by Niraj <ni...@gmail.com>.
Thanks for the response.Please find below my answers.

1. How many threads have you started? Only 1 Thread
2. Can you post server error logs, if any .... There are no server logs
3. If starting many threads, have you decreased the load to see if and
when this error stops? I am running test for single user
 4. If starting many threads, have you increased connection/thread pool
or any other server/application configuration to see if error stops? I
haven't done anything on server
  5. Is the load applied overloading your network bandwidth? I
am running the test on internal which has bandwidth of 1GBPS.

On Wed, Jul 11, 2012 at 5:09 PM, Flavio Cysne <fl...@gmail.com> wrote:

> Niraj,
>
>     some question come up when this kind of error occurs:
>
>     1. How many threads have you started?
>     2. Can you post server error logs, if any?
>     3. If starting many threads, have you decreased the load to see if and
> when this error stops?
>     4. If starting many threads, have you increased connection/thread pool
> or any other server/application configuration to see if error stops?
>     5. Is the load applied overloading your network bandwidth?
>
>     I have ran into a situation like this and, for my case, decreasing the
> load stops the error. At this point I started monitoring network
> (interfaces and bandwidth) and server connections. The problem was server's
> connections pool/queue too low for the load.
>
> Hope it helps you.
> Flávio Cysne
>
> 2012/7/11 Niraj <ni...@gmail.com>
>
> > Hello All,
> >
> > I am running a Jmeter script in version 2.6. After running script in
> result
> > tree i am getting below mentioned error. But this error is not coming to
> > any specific request. I am getting this error for any random request. If
> i
> > ran test 1st time i am getting error for one png request. In next run
> same
> > png request passed successfully and error is seen for some different
> > request.
> >
> > Can someone please help me to resolve this issue?
> >
> > java.net.SocketException: Connection reset at
> > java.net.SocketInputStream.read(SocketInputStream.java:168) at
> > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
> > java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
> > java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> > sun.net.www.MeteredStream.read(MeteredStream.java:116) at
> > java.io.FilterInputStream.read(FilterInputStream.java:116) at
> >
> >
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676)
> > at
> >
> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:99)
> > at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at
> > java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> > java.io.FilterInputStream.read(FilterInputStream.java:90) at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1620)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:236)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.readResponse(HTTPJavaImpl.java:282)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:512)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054)
> > at
> >
> >
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043)
> > at
> >
> >
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
> > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) at
> > java.lang.Thread.run(Thread.java:662)
> >
> > Thanks,
> > Niraj
> >
>

Re: Error while running Jmeter script

Posted by Flavio Cysne <fl...@gmail.com>.
Niraj,

    some question come up when this kind of error occurs:

    1. How many threads have you started?
    2. Can you post server error logs, if any?
    3. If starting many threads, have you decreased the load to see if and
when this error stops?
    4. If starting many threads, have you increased connection/thread pool
or any other server/application configuration to see if error stops?
    5. Is the load applied overloading your network bandwidth?

    I have ran into a situation like this and, for my case, decreasing the
load stops the error. At this point I started monitoring network
(interfaces and bandwidth) and server connections. The problem was server's
connections pool/queue too low for the load.

Hope it helps you.
Flávio Cysne

2012/7/11 Niraj <ni...@gmail.com>

> Hello All,
>
> I am running a Jmeter script in version 2.6. After running script in result
> tree i am getting below mentioned error. But this error is not coming to
> any specific request. I am getting this error for any random request. If i
> ran test 1st time i am getting error for one png request. In next run same
> png request passed successfully and error is seen for some different
> request.
>
> Can someone please help me to resolve this issue?
>
> java.net.SocketException: Connection reset at
> java.net.SocketInputStream.read(SocketInputStream.java:168) at
> java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
> java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
> java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> sun.net.www.MeteredStream.read(MeteredStream.java:116) at
> java.io.FilterInputStream.read(FilterInputStream.java:116) at
>
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2676)
> at
> org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:99)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at
> java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> java.io.FilterInputStream.read(FilterInputStream.java:90) at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1620)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:236)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.readResponse(HTTPJavaImpl.java:282)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:512)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1054)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1043)
> at
>
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) at
> java.lang.Thread.run(Thread.java:662)
>
> Thanks,
> Niraj
>

Re: Error while running Jmeter script

Posted by Flavio Cysne <fl...@gmail.com>.
Just to check. Did you test using Java, H3.1 and H4 implementations? All
implementations throws that error?

Regrads.

2012/7/13 Niraj <ni...@gmail.com>

> Hello Sebbaz,
>
> I am running test for single user and i am not able anything in error log
> of server.
>
> Frequency is any one random request per on load test run. If i ran load
> test for 5 users, one random request for per users fail with the mentioned
> error.
>
> Thanks,
> Niraj
>
> On Fri, Jul 13, 2012 at 2:35 PM, sebb <se...@gmail.com> wrote:
>
> > On 11 July 2012 12:03, Niraj <ni...@gmail.com> wrote:
> > > Hello All,
> > >
> > > I am running a Jmeter script in version 2.6. After running script in
> > result
> > > tree i am getting below mentioned error. But this error is not coming
> to
> > > any specific request. I am getting this error for any random request.
> If
> > i
> > > ran test 1st time i am getting error for one png request. In next run
> > same
> > > png request passed successfully and error is seen for some different
> > > request.
> > >
> > > Can someone please help me to resolve this issue?
> > >
> > > java.net.SocketException: Connection reset at
> > > java.net.SocketInputStream.read(SocketInputStream.java:168) at
> > > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
> > > java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
> > > java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> > > sun.net.www.MeteredStream.read(MeteredStream.java:116) at
> >
> > This is almost certainly caused by the server dropping the connection,
> > most likely because it is overloaded.
> >
> > Check the server logs to see if there is any relevant information.
> >
> > Does the frequency of the errors vary with the total load on the server?
> >
> > If it's not the server, then it must be some other part of the route
> > between JMeter and the server, e.g. router/gateway.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

Re: Error while running Jmeter script

Posted by Niraj <ni...@gmail.com>.
Hello Sebbaz,

I am running test for single user and i am not able anything in error log
of server.

Frequency is any one random request per on load test run. If i ran load
test for 5 users, one random request for per users fail with the mentioned
error.

Thanks,
Niraj

On Fri, Jul 13, 2012 at 2:35 PM, sebb <se...@gmail.com> wrote:

> On 11 July 2012 12:03, Niraj <ni...@gmail.com> wrote:
> > Hello All,
> >
> > I am running a Jmeter script in version 2.6. After running script in
> result
> > tree i am getting below mentioned error. But this error is not coming to
> > any specific request. I am getting this error for any random request. If
> i
> > ran test 1st time i am getting error for one png request. In next run
> same
> > png request passed successfully and error is seen for some different
> > request.
> >
> > Can someone please help me to resolve this issue?
> >
> > java.net.SocketException: Connection reset at
> > java.net.SocketInputStream.read(SocketInputStream.java:168) at
> > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
> > java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
> > java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> > sun.net.www.MeteredStream.read(MeteredStream.java:116) at
>
> This is almost certainly caused by the server dropping the connection,
> most likely because it is overloaded.
>
> Check the server logs to see if there is any relevant information.
>
> Does the frequency of the errors vary with the total load on the server?
>
> If it's not the server, then it must be some other part of the route
> between JMeter and the server, e.g. router/gateway.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Error while running Jmeter script

Posted by sebb <se...@gmail.com>.
On 11 July 2012 12:03, Niraj <ni...@gmail.com> wrote:
> Hello All,
>
> I am running a Jmeter script in version 2.6. After running script in result
> tree i am getting below mentioned error. But this error is not coming to
> any specific request. I am getting this error for any random request. If i
> ran test 1st time i am getting error for one png request. In next run same
> png request passed successfully and error is seen for some different
> request.
>
> Can someone please help me to resolve this issue?
>
> java.net.SocketException: Connection reset at
> java.net.SocketInputStream.read(SocketInputStream.java:168) at
> java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at
> java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at
> java.io.BufferedInputStream.read(BufferedInputStream.java:317) at
> sun.net.www.MeteredStream.read(MeteredStream.java:116) at

This is almost certainly caused by the server dropping the connection,
most likely because it is overloaded.

Check the server logs to see if there is any relevant information.

Does the frequency of the errors vary with the total load on the server?

If it's not the server, then it must be some other part of the route
between JMeter and the server, e.g. router/gateway.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Error while running Jmeter script

Posted by niraj <ni...@gmail.com>.
Still i am facing issue. I can ping the server without any issue. 

--
View this message in context: http://jmeter.512774.n5.nabble.com/Error-while-running-Jmeter-script-tp5713976p5714009.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org