Four Js Development Tools Forum

Discussions by product => Reporting tools (GRW, GRE) => Topic started by: Laurent G. on November 15, 2010, 05:40:53 pm



Title: Java Out of Memory errors when running GRW reports
Post by: Laurent G. on November 15, 2010, 05:40:53 pm
If you encounter OutOfMemory java errors or coredumps when trying to run GRW reports, you can first try to obviously load less data and see if the report works. If it does but you still have a constraint on the initial data set that failed, here is another suggestion for you:

Under $GREDIR/bin, modify greprtwriter[.bat] and change the last line adding '-Xmx1000m' so that it looks something like:

"%JAVA_HOME%\bin\java" -Xmx1000m -Djava.awt.headless=true StyleSheetMain -useGSTErrorFormat %DEBUGOPTION% -stdin %*

This will assign more memory to the java process (1gb here).

Caution => make sure you monitor the memory management on your system and fine tune it to your needs while limiting it based on your OS settings/constraints ... ignoring to do so could lead to unpleasant side effects