Saturday, October 5, 2013

java.lang.OutOfMemoryError in jmeter......?



A java.lang.OutOfMemoryError is a subclass of java.lang.VirtualMachineError that is thrown when the Java Virtual Machine is broken or has run out of resources that are necessary to continue the operation of the Java Virtual Machine. Obviously, memory is the exhausted resource for a java.lang.OutOfMemoryError, which is thrown when the Java Virtual Machine cannot allocate an object due to memory constraints.


To overcome this issues while Jmeter Execution, increase heap memory of Jmeter, modify the line of code in jmeter.bat file.

Right Click on jmeter.bat file click on Edit 
and modify the line  
orginal :set HEAP=-Xms512m -Xmx512m 
modified : set HEAP=-Xms512m -Xmx1250m (For 32 Bit OS)

for 64 bit OS,the value wil change upto 102400,   

FYI: need to install jre for 64 bit in the system..

No comments:

Post a Comment