java.lang.OutOfMemoryError during Jmeter execution



  • Getting below error message during our load test in jmeter version 5.1.1.

    2020-01-17 01:30:00,644 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.OutOfMemoryError: Java heap space
    

    How much Max memory should we increase in jmeter batch file using command:

    HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
    


  • BlazeMeter article recommends:

    Just increase the maximum heap size to ~80% of your total available physical RAM.

    HEAP="-Xms512m -Xmx512m"

    Now change the -Xmx value accordingly. For example: if you want to set the maximum heap > size to 4 gigabytes, you’ll need to change the line to: HEAP="-Xms512m -Xmx4096m"


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2