Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Java Out of Memory errors when running GRW reports  (Read 8631 times)
Laurent G.
Four Js
Posts: 116


« 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines