You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by pa...@accenture.com on 2016/01/21 10:53:42 UTC

Out of Memory Error in JMeter during Endurance testing

Good day,

I use JMeter for Performance Testing in my  job role. In my job,JMeter  is a very important tool due to a lot of important benefits it allows me to carry out my job efficiently.

In short, I have tried to change the memory used by setting  the  jmeter.bat  file or jmeter.sh and the following changes do not work:

Example:
in jmeter.sh:
JVM_ARGS = "- Xms512m -Xmx2048m" jmeter.sh

in jmeter.bat:
Set HEAP = -Xms512mx2048m

By default the values are from 512m to 512m in the previous values lines.

Regarding the above, I found an error in the console windows cmd running at startup JMeter:

SEE ADJUNTING SCREENSHOTS !

Error in JMeter Log:

... java.lang.OutOfMemoryError: Java heap space

So, Could you explain me why cannot I change the memory used JMeter about java? And How can I set it in order to enlarge the memory that the JMETER can use?

JMeter version:  2.13 (the last version)

Java version:  1.8.0_71 (the last version)

Thank you very much in advance and please respond ASAP.

Best regards,

______________________________

Pablo Mancebo Paños
Testing center of Excellence
Accenture Delivery Center in Spain
Spain DC site >  sdc.accenture.com<https://sites.accenture.com/publishing/SpainDeliveryCenter/Spain/Pages/default.aspx>
pablo.mancebo.panos@accenture.com<ma...@accenture.com>



________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

RE: Out of Memory Error in JMeter during Endurance testing

Posted by pa...@accenture.com.
Hi,

Yes, in my computer there are 8 GB of Memory Ram. I change this configuration as you indicated your and all ok, but there is a problem: If I replay my script in JMeter, continue the problem log Jmeter to:

2016/22/1 8:35:15 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.OutOfMemoryError: Java heap space


I am looking forward to your response
Best rewards,
______________________________

Pablo Mancebo Paños
Testing center of Excellence
Accenture Delivery Center in Spain
Spain DC site >  sdc.accenture.com
pablo.mancebo.panos@accenture.com




-----Original Message-----
From: ZK [mailto:stevesenior69@gmail.com]
Sent: jueves, 21 de enero de 2016 12:48
To: jmeter-user@jakarta.apache.org
Subject: Re: Out of Memory Error in JMeter during Endurance testing

Hi,
I cannot see your screen shots, however; How much RAM do you have available on your PC?

I edit these 2 lines in the jmeter.bat

set HEAP=-Xms512m -Xmx512m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m

to set 4 Gig for jmeter:

set HEAP=-Xms4g -Xmx4g
set NEW=-XX:NewSize=4g -XX:MaxNewSize=4g


You should also disable all listeners when running in GUI mode
See:
jmeter-best-practices
<http://docs.blazemeter.com/customer/portal/articles/1932776-jmeter-best-practices>



ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Out-of-Memory-Error-in-JMeter-during-Endurance-testing-tp5723656p5723657.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


________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

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


Re: Out of Memory Error in JMeter during Endurance testing

Posted by ZK <st...@gmail.com>.
Hi,
I cannot see your screen shots, however; How much RAM do you have available
on your PC?

I edit these 2 lines in the jmeter.bat

set HEAP=-Xms512m -Xmx512m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m

to set 4 Gig for jmeter:

set HEAP=-Xms4g -Xmx4g
set NEW=-XX:NewSize=4g -XX:MaxNewSize=4g


You should also disable all listeners when running in GUI mode
See:
jmeter-best-practices
<http://docs.blazemeter.com/customer/portal/articles/1932776-jmeter-best-practices>  



ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Out-of-Memory-Error-in-JMeter-during-Endurance-testing-tp5723656p5723657.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: Out of Memory Error in JMeter during Endurance testing

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 21.01.2016 um 10:53 schrieb pablo.mancebo.panos@accenture.com:
> Good day,
>
> I use JMeter for Performance Testing in my  job role. In my job,JMeter  is a very important tool due to a lot of important benefits it allows me to carry out my job efficiently.
>
> In short, I have tried to change the memory used by setting  the  jmeter.bat  file or jmeter.sh and the following changes do not work:
>
> Example:
> in jmeter.sh:
> JVM_ARGS = "- Xms512m -Xmx2048m" jmeter.sh
>
> in jmeter.bat:
> Set HEAP = -Xms512mx2048m
>
> By default the values are from 512m to 512m in the previous values lines.
>
> Regarding the above, I found an error in the console windows cmd running at startup JMeter:
>
> SEE ADJUNTING SCREENSHOTS !
>
> Error in JMeter Log:
>
> ... java.lang.OutOfMemoryError: Java heap space
>
> So, Could you explain me why cannot I change the memory used JMeter about java? And How can I set it in order to enlarge the memory that the JMETER can use?

You could tell us a bit about your test plans. There are a few places, 
where you can easily waste memory, if you are not careful.

Regards,
  Felix
>
> JMeter version:  2.13 (the last version)
>
> Java version:  1.8.0_71 (the last version)
>
> Thank you very much in advance and please respond ASAP.
>
> Best regards,
>
> ______________________________
>
> Pablo Mancebo Paños
> Testing center of Excellence
> Accenture Delivery Center in Spain
> Spain DC site >  sdc.accenture.com<https://sites.accenture.com/publishing/SpainDeliveryCenter/Spain/Pages/default.aspx>
> pablo.mancebo.panos@accenture.com<ma...@accenture.com>
>
>
>
> ________________________________
>
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
> ______________________________________________________________________________________
>
> www.accenture.com
>


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


Re: Out of Memory Error in JMeter during Endurance testing

Posted by Pravesh Prajapati <pr...@gmail.com>.
Hi
I you just explain what is the meaning of those 2 points.

On Saturday, January 23, 2016, Flavio Cysne <fl...@gmail.com> wrote:

> I have been using the configurations below for jdk 7 and 8 at work.
>
> 1st try: change HEAP declaration in jmeter for "-XX:+AggressiveOpts
> -XX:+AggressiveHeap"
>
> 2nd try: change HEAP declaration in JMeter for about 70% of available RAM,
> Xms and Xmx with the same value.
>
> 1st option is better suitable when using jdk 8.
>


-- 
Regards,
Pravesh prajapati.
Mob:-9702600170

Re: Out of Memory Error in JMeter during Endurance testing

Posted by Flavio Cysne <fl...@gmail.com>.
I have been using the configurations below for jdk 7 and 8 at work.

1st try: change HEAP declaration in jmeter for "-XX:+AggressiveOpts
-XX:+AggressiveHeap"

2nd try: change HEAP declaration in JMeter for about 70% of available RAM,
Xms and Xmx with the same value.

1st option is better suitable when using jdk 8.