JMeter "Out of Memory” Failure

JMeter "Out of Memory” Failure

by Jerry Lau -
Number of replies: 2

I wish to increase the heap memory to 4 GB but I can't find it in the script..

to HEAP="-Xms512m -Xmx4096m"

Is there a way I can do that in JMeter itself?

Thanks



Average of ratings: -
In reply to Jerry Lau

Re: JMeter "Out of Memory” Failure

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moving to Hardware and performance forum...

In reply to Howard Miller

Re: JMeter "Out of Memory” Failure

by Jerry Lau -

I figured it out by looking at my .sh or .bat files


first step is to ,odify the JVM memory in the JMeter batch file

In jmeter.sh

JVM_ARGS=-Xms512m -Xmx4096m

in jmeter.bat

set JVM_ARGS=-Xms512m -Xmx4096m

2nd step is to modify HEAP="-Xms512m -Xmx4096m" in the JMeter batch file:

in the jmeter.sh

HEAP="-Xms512m -Xmx4096m"

in the jmeter.bat:

set HEAP=-Xms512m -Xmx4096m