java.lang.OutOfMemoryError: Java heap space

David Registro shared this problem 6 years ago
Resolved

Running a report and getting the following error on screen:

3a4293701cf9d49c09a21edd1c6bcaed

,,and the following in the logs

Error running report: java.lang.OutOfMemoryError: Java heap space

The report will never load.

Replies (1)

photo
1

This error essentially means there is no free java memory to process your request, in this specific instance it relates to a report load.

There are 2 ways around this;

  • Option A: Increase java memory
  • Option B: Decrease amount of memory needed for the report to run.

For this post, I will simply increase the memory allocation for 'Option A',

Option B may need to be handled via the services team as there are many factors to take into consideration. If you wanted to go down that path, please reach out to us to get the ball rolling.


To increase the memory allocation, you will need to modify a particular file based on your start up method, different methods are listed here.

In my case I just modified the catalina.bat and increased the mem from 1024m to 4096m, and restarted Yf.

f9e46d4cb8f40ead057242b5bcddc49f


If you still face issues with this, or have other questions, please reach out to us for further assistance. I

Regards,

David

Replies have been locked on this page!