Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OutOfMemoryError in JMeter

In JMeter I am getting this error.

jmeter.JMeter: Uncaught exception:  java.lang.OutOfMemoryError: Java heap space

Please let me know how to resolve.

like image 931
bugCracker Avatar asked Nov 05 '14 07:11

bugCracker


1 Answers

Increase the JMeter heap memory

  1. Within your explorer find where you installed JMeter
  2. Open up the bin directory.
  3. Find the JMeter.bat file and open it with a text editor
  4. Find the following set HEAP

    You can set this HEAP value to whatever you like, in this example I've said allocate 2 GB of memory from the start and throughout the test run: set HEAP=-Xms2048m -Xmx2048m

like image 71
bugCracker Avatar answered Oct 18 '22 21:10

bugCracker