java.lang.OutOfMemoryError: Java heap space
Resolved
Running a report and getting the following error on screen:
,,and the following in the logs
Error running report: java.lang.OutOfMemoryError: Java heap space
The report will never load.
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;
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.
If you still face issues with this, or have other questions, please reach out to us for further assistance. I
Regards,
David
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;
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.
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!