You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ch...@labware.com on 2008/09/22 14:41:11 UTC
Out of memory error and NPE in Jmeter
Hi All,
I am simulating 50 concurrent users through Jmeter and my
Thread group has two listeners :
1. Graph Results
2. Summary Report(Configured only to show the errors )
And I after running the test plan once , I got a few errors (NPE, Out of
Memory error etc ) which leads me to think that there is some memory leak
going on ?BTW the machine has a 2GB RAM and the only java app running is
Jmeter ( with Xms=512M , Xmx=512M) ....Which Listener gives me maximum
info utilising minimum memory ? I am interested in knowing the performance
of the application as the number of users increase ...Some kind of graph
would be helpful....
Here's the stack traces : Any explanations ?
1.
8/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
readResponse: java.io.IOException
2008/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
Cause: java.io.IOException: Server returned HTTP response code: 500 for
URL: http://192.168.1.42:8080/weblims3/index.htm?ts=1221820111343
2008/09/22 12:22:34 INFO - jmeter.protocol.http.sampler.HTTPSampler:
Error Response Code: 500
2. A few of these below :
2008/09/22 12:54:07 ERROR - jmeter.threads.ListenerNotifier: Detected
problem in Listener: java.lang.NullPointerException
at org.apache.jmeter.visualizers.Graph.updateGui(Graph.java:160)
at
org.apache.jmeter.visualizers.GraphVisualizer.updateGui(GraphVisualizer.java:117)
at
org.apache.jmeter.visualizers.GraphVisualizer.add(GraphVisualizer.java:128)
at
org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:456)
at
org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:436)
at
org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:240)
at
org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:576)
at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:313)
at java.lang.Thread.run(Unknown Source)
3. A few of these too :
2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at
org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
at java.lang.Thread.run(Unknown Source)
2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at
org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
at java.lang.Thread.run(Unknown Source)
4.
2008/09/22 13:47:52 ERROR - jmeter.threads.JMeterThread: Test failed!
java.lang.OutOfMemoryError
Regards,
Subhrajyoti
Mobile: +919830079545
Mail: choudhury@labware.com
Web: www.labware.com
LabWare LIMS Solutions - Results Count
Re: Out of memory error and NPE in Jmeter
Posted by sebb <se...@gmail.com>.
On 22/09/2008, Choudhury@labware.com <Ch...@labware.com> wrote:
> Please see my comments with ">>" in reply to your response .....in the
> mail below inline
>
> Regards,
>
> Subhrajyoti
> Mobile: +919830079545
> Mail: choudhury@labware.com
> Web: www.labware.com
>
> LabWare LIMS Solutions - Results Count
>
>
>
>
> sebb <se...@gmail.com>
> 09/22/2008 06:47 PM
> Please respond to
> "JMeter Users List" <jm...@jakarta.apache.org>
>
>
> To
> "JMeter Users List" <jm...@jakarta.apache.org>
> cc
>
> Subject
> Re: Out of memory error and NPE in Jmeter
>
>
>
>
>
>
>
> On 22/09/2008, Choudhury@labware.com <Ch...@labware.com> wrote:
> > Hi All,
> > I am simulating 50 concurrent users through Jmeter and my
> > Thread group has two listeners :
> >
> > 1. Graph Results
> > 2. Summary Report(Configured only to show the errors )
>
> The Graph Results listener can use lots of memory. Try disabling it.
>
> > And I after running the test plan once , I got a few errors (NPE, Out
> of
> > Memory error etc ) which leads me to think that there is some memory
> leak
> > going on ?BTW the machine has a 2GB RAM and the only java app running
> is
> > Jmeter ( with Xms=512M , Xmx=512M)
>
> Try 1024 instead.
>
>
> >> This solves the memory problem .
Good.
>
>
> > ....Which Listener gives me maximum
> > info utilising minimum memory ?
>
> See:
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#listeners
>
>
> I am interested in knowing the performance
> > of the application as the number of users increase ...Some kind of
> graph
> > would be helpful....
> >
>
> The Summary Report should be enough.
>
> >> I need to show some graphical results to find out the point (ie the
> number of users where the throughput starts to get affected. Can the
> rsults from the Summary report be ported to some graphical results
> offline?
You can store all results in a CSV file and analyse that in any tool you want.
Or you can press the "Save Table Data" at the end of the run to save
the calculated data.
> > Here's the stack traces : Any explanations ?
> >
> > 1.
> > 8/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> > readResponse: java.io.IOException
> > 2008/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> > Cause: java.io.IOException: Server returned HTTP response code: 500 for
> > URL: http://192.168.1.42:8080/weblims3/index.htm?ts=1221820111343
> > 2008/09/22 12:22:34 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> > Error Response Code: 500
>
> The server returned the error code 500 - ask the people who run the server
> .
>
> > 2. A few of these below :
> >
> > 2008/09/22 12:54:07 ERROR - jmeter.threads.ListenerNotifier: Detected
> > problem in Listener: java.lang.NullPointerException
> > at org.apache.jmeter.visualizers.Graph.updateGui(Graph.java:160)
> > at
> >
> org.apache.jmeter.visualizers.GraphVisualizer.updateGui(GraphVisualizer.java:117)
> > at
> >
> org.apache.jmeter.visualizers.GraphVisualizer.add(GraphVisualizer.java:128)
> > at
> >
> org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:456)
> > at
> >
> org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:436)
> > at
> >
> org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:240)
> > at
> >
> org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:576)
> > at
> > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:313)
> > at java.lang.Thread.run(Unknown Source)
>
> Should not happen.
>
> Which version of JMeter?
>
> >> Version 2.3.1
>
Version 2.3.2 is the current version; though I don't think that area
has changed.
> > 3. A few of these too :
> >
> > 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> > java.lang.InterruptedException: sleep interrupted
> > at java.lang.Thread.sleep(Native Method)
> > at
> > org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> > at
> > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> > at java.lang.Thread.run(Unknown Source)
> >
> > 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> > java.lang.InterruptedException: sleep interrupted
> > at java.lang.Thread.sleep(Native Method)
> > at
> > org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> > at
> > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> > at java.lang.Thread.run(Unknown Source)
>
> Probably OK - are they associated with other errors?
>
> >> I have no way of telling whether this was associated with any other
> error. The test actually ended after this . Why do you think this is okay
>
Because it just means that the Thread delay was terminated early.
It should probably be a warning, not an error, as it only affects the timing.
> ?
>
> > 4.
> > 2008/09/22 13:47:52 ERROR - jmeter.threads.JMeterThread: Test failed!
> > java.lang.OutOfMemoryError
>
> See above.
>
> > Regards,
> >
> > Subhrajyoti
> > Mobile: +919830079545
> > Mail: choudhury@labware.com
> > Web: www.labware.com
> >
> > LabWare LIMS Solutions - Results Count
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Out of memory error and NPE in Jmeter
Posted by Ch...@labware.com.
Please see my comments with ">>" in reply to your response .....in the
mail below inline
Regards,
Subhrajyoti
Mobile: +919830079545
Mail: choudhury@labware.com
Web: www.labware.com
LabWare LIMS Solutions - Results Count
sebb <se...@gmail.com>
09/22/2008 06:47 PM
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org>
To
"JMeter Users List" <jm...@jakarta.apache.org>
cc
Subject
Re: Out of memory error and NPE in Jmeter
On 22/09/2008, Choudhury@labware.com <Ch...@labware.com> wrote:
> Hi All,
> I am simulating 50 concurrent users through Jmeter and my
> Thread group has two listeners :
>
> 1. Graph Results
> 2. Summary Report(Configured only to show the errors )
The Graph Results listener can use lots of memory. Try disabling it.
> And I after running the test plan once , I got a few errors (NPE, Out
of
> Memory error etc ) which leads me to think that there is some memory
leak
> going on ?BTW the machine has a 2GB RAM and the only java app running
is
> Jmeter ( with Xms=512M , Xmx=512M)
Try 1024 instead.
>> This solves the memory problem .
> ....Which Listener gives me maximum
> info utilising minimum memory ?
See:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#listeners
I am interested in knowing the performance
> of the application as the number of users increase ...Some kind of
graph
> would be helpful....
>
The Summary Report should be enough.
>> I need to show some graphical results to find out the point (ie the
number of users where the throughput starts to get affected. Can the
rsults from the Summary report be ported to some graphical results
offline?
> Here's the stack traces : Any explanations ?
>
> 1.
> 8/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> readResponse: java.io.IOException
> 2008/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> Cause: java.io.IOException: Server returned HTTP response code: 500 for
> URL: http://192.168.1.42:8080/weblims3/index.htm?ts=1221820111343
> 2008/09/22 12:22:34 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> Error Response Code: 500
The server returned the error code 500 - ask the people who run the server
.
> 2. A few of these below :
>
> 2008/09/22 12:54:07 ERROR - jmeter.threads.ListenerNotifier: Detected
> problem in Listener: java.lang.NullPointerException
> at org.apache.jmeter.visualizers.Graph.updateGui(Graph.java:160)
> at
>
org.apache.jmeter.visualizers.GraphVisualizer.updateGui(GraphVisualizer.java:117)
> at
>
org.apache.jmeter.visualizers.GraphVisualizer.add(GraphVisualizer.java:128)
> at
>
org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:456)
> at
>
org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:436)
> at
>
org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:240)
> at
>
org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:576)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:313)
> at java.lang.Thread.run(Unknown Source)
Should not happen.
Which version of JMeter?
>> Version 2.3.1
> 3. A few of these too :
>
> 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> java.lang.InterruptedException: sleep interrupted
> at java.lang.Thread.sleep(Native Method)
> at
> org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> at java.lang.Thread.run(Unknown Source)
>
> 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> java.lang.InterruptedException: sleep interrupted
> at java.lang.Thread.sleep(Native Method)
> at
> org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> at java.lang.Thread.run(Unknown Source)
Probably OK - are they associated with other errors?
>> I have no way of telling whether this was associated with any other
error. The test actually ended after this . Why do you think this is okay
?
> 4.
> 2008/09/22 13:47:52 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError
See above.
> Regards,
>
> Subhrajyoti
> Mobile: +919830079545
> Mail: choudhury@labware.com
> Web: www.labware.com
>
> LabWare LIMS Solutions - Results Count
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Out of memory error and NPE in Jmeter
Posted by sebb <se...@gmail.com>.
On 22/09/2008, Choudhury@labware.com <Ch...@labware.com> wrote:
> Hi All,
> I am simulating 50 concurrent users through Jmeter and my
> Thread group has two listeners :
>
> 1. Graph Results
> 2. Summary Report(Configured only to show the errors )
The Graph Results listener can use lots of memory. Try disabling it.
> And I after running the test plan once , I got a few errors (NPE, Out of
> Memory error etc ) which leads me to think that there is some memory leak
> going on ?BTW the machine has a 2GB RAM and the only java app running is
> Jmeter ( with Xms=512M , Xmx=512M)
Try 1024 instead.
> ....Which Listener gives me maximum
> info utilising minimum memory ?
See:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#listeners
I am interested in knowing the performance
> of the application as the number of users increase ...Some kind of graph
> would be helpful....
>
The Summary Report should be enough.
> Here's the stack traces : Any explanations ?
>
> 1.
> 8/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> readResponse: java.io.IOException
> 2008/09/22 12:22:34 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> Cause: java.io.IOException: Server returned HTTP response code: 500 for
> URL: http://192.168.1.42:8080/weblims3/index.htm?ts=1221820111343
> 2008/09/22 12:22:34 INFO - jmeter.protocol.http.sampler.HTTPSampler:
> Error Response Code: 500
The server returned the error code 500 - ask the people who run the server .
> 2. A few of these below :
>
> 2008/09/22 12:54:07 ERROR - jmeter.threads.ListenerNotifier: Detected
> problem in Listener: java.lang.NullPointerException
> at org.apache.jmeter.visualizers.Graph.updateGui(Graph.java:160)
> at
> org.apache.jmeter.visualizers.GraphVisualizer.updateGui(GraphVisualizer.java:117)
> at
> org.apache.jmeter.visualizers.GraphVisualizer.add(GraphVisualizer.java:128)
> at
> org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:456)
> at
> org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:436)
> at
> org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:240)
> at
> org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:576)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:313)
> at java.lang.Thread.run(Unknown Source)
Should not happen.
Which version of JMeter?
> 3. A few of these too :
>
> 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> java.lang.InterruptedException: sleep interrupted
> at java.lang.Thread.sleep(Native Method)
> at
> org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> at java.lang.Thread.run(Unknown Source)
>
> 2008/09/22 13:51:26 ERROR - jmeter.threads.JMeterThread:
> java.lang.InterruptedException: sleep interrupted
> at java.lang.Thread.sleep(Native Method)
> at
> org.apache.jmeter.threads.JMeterThread.delay(JMeterThread.java:553)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:293)
> at java.lang.Thread.run(Unknown Source)
Probably OK - are they associated with other errors?
> 4.
> 2008/09/22 13:47:52 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.OutOfMemoryError
See above.
> Regards,
>
> Subhrajyoti
> Mobile: +919830079545
> Mail: choudhury@labware.com
> Web: www.labware.com
>
> LabWare LIMS Solutions - Results Count
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org