You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by RPh on yahoo <rx...@yahoo.com.INVALID> on 2015/03/13 16:13:07 UTC
Jmeter and heap dump on out of memory
Hello,
I run my jmeter tests from a shell script on linux. The shell
script basically loops through many jmeter jmx files.
Often, I see heapdump messages, which I guess mean out of memory.
My jmeter shell script, default that comes with jmeter install, contains
DUMP="-XX:+HeapDumpOnOutOfMemoryError" so I guess this is
what causes the message to appear in my linux session window.
I guess I'm ok with the heapdump message appearing, but I do not know
how to fix.
My question is when the heap dump occurs, does it mean
that the jmeter test stops completely, or does the jmeter test pause until
more memory is available?
Any help is so appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Jmeter and heap dump on out of memory
Posted by Deepak Shetty <sh...@gmail.com>.
>I guess I'm ok with the heapdump message appearing,
You shouldnt be - Theres a good chance that the numbers you are getting are
much worse than they should be.
In all likelihood you have some listeners enabled that are holding onto
memory and you need to change that . You also might have a smaller heap
than whatever load you are generating needs or perhaps your responses are
too large (e.g. downloading large files) - all of which only you can
investigate and see whats wrong
On Fri, Mar 13, 2015 at 8:13 AM, RPh on yahoo <rxfillpharm@yahoo.com.invalid
> wrote:
> Hello,
>
> I run my jmeter tests from a shell script on linux. The shell
> script basically loops through many jmeter jmx files.
>
> Often, I see heapdump messages, which I guess mean out of memory.
> My jmeter shell script, default that comes with jmeter install, contains
> DUMP="-XX:+HeapDumpOnOutOfMemoryError" so I guess this is
> what causes the message to appear in my linux session window.
>
> I guess I'm ok with the heapdump message appearing, but I do not know
> how to fix.
>
>
> My question is when the heap dump occurs, does it mean
> that the jmeter test stops completely, or does the jmeter test pause until
> more memory is available?
>
> Any help is so appreciated.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
RE: Jmeter and heap dump on out of memory
Posted by "Brydges, Jamie" <jb...@fdbhealth.com>.
Hi,
I've been having this same problem. This is how I fixed it:
1. Open up the jmeter.bat file in the bin folder with a text editor. Increase the heap space set at line starting: set HEAP=-Xms512m -Xmx512m. (i have set mine to: set HEAP=-Xms1550m -Xmx1550m).
2. Remove all listeners and debugging tools (i.e. graphs, summary reports, view results tree/ table etc..) from your JMeter test plan.
3. Split out your JMeter test into more JMeter instances. I.e. if you have 400 threads running with 1 instance, split this into 2 x 200 thread instances.
4. Increase the RAM in your PC.
5. Run JMeter in non-GUI mode (which I think you're doing already).
These have worked for me!
Jamie.
-----Original Message-----
From: Flavio Cysne [mailto:flaviocysne@gmail.com]
Sent: 13 March 2015 15:33
To: JMeter Users List
Subject: Re: Jmeter and heap dump on out of memory
Execute a df -h to see if you still have HD to store JMeter resulta file, because HeapDump generates a huge file in your filesystem. Maybe the number of threads you are starting in this machine is too much for it. Another approach is to use -XX:AggressiveHeap (jdk 6-) or -XX:AggressiveOpts
(jdk7+) instead of default JMeter -Xms and -Xmx options.
Em 13/03/2015 12:19, "RPh on yahoo" <rx...@yahoo.com.invalid>
escreveu:
> Hello,
>
> I run my jmeter tests from a shell script on linux. The shell script
> basically loops through many jmeter jmx files.
>
> Often, I see heapdump messages, which I guess mean out of memory.
> My jmeter shell script, default that comes with jmeter install,
> contains DUMP="-XX:+HeapDumpOnOutOfMemoryError" so I guess this is
> what causes the message to appear in my linux session window.
>
> I guess I'm ok with the heapdump message appearing, but I do not know
> how to fix.
>
>
> My question is when the heap dump occurs, does it mean that the jmeter
> test stops completely, or does the jmeter test pause until more memory
> is available?
>
> Any help is so appreciated.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
----------------------------------------------------------------------
---- This e-mail message is intended only for the personal use of the
recipient(s) named above. If you are not an intended recipient, you
may not review, copy or distribute this message. If you have received
this communication in error, please notify FDB Support
(HelpDesk@fdbhealth.com) immediately by e-mail and delete the
original message.
----------------------------------------------------------------------
Re: Jmeter and heap dump on out of memory
Posted by Flavio Cysne <fl...@gmail.com>.
Execute a df -h to see if you still have HD to store JMeter resulta file,
because HeapDump generates a huge file in your filesystem. Maybe the number
of threads you are starting in this machine is too much for it. Another
approach is to use -XX:AggressiveHeap (jdk 6-) or -XX:AggressiveOpts
(jdk7+) instead of default JMeter -Xms and -Xmx options.
Em 13/03/2015 12:19, "RPh on yahoo" <rx...@yahoo.com.invalid>
escreveu:
> Hello,
>
> I run my jmeter tests from a shell script on linux. The shell
> script basically loops through many jmeter jmx files.
>
> Often, I see heapdump messages, which I guess mean out of memory.
> My jmeter shell script, default that comes with jmeter install, contains
> DUMP="-XX:+HeapDumpOnOutOfMemoryError" so I guess this is
> what causes the message to appear in my linux session window.
>
> I guess I'm ok with the heapdump message appearing, but I do not know
> how to fix.
>
>
> My question is when the heap dump occurs, does it mean
> that the jmeter test stops completely, or does the jmeter test pause until
> more memory is available?
>
> Any help is so appreciated.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>