Home
Analytics
genReport OutOfMemoryError
mrab
I am trying to create PDF's using genReport.sh. The reportdesign files are generating charts and I can get some of them to run, but a few are failing on 'OutOfMemoryError'. I saw in other posts that the memory was specified on the JAVA_OPTS for Tomcat. We increased the memory in catalina.sh as follows, restarted Tomcat, and still get the error.
JAVA_OPTS="-Xms128M" "-Xmx1G
Is there something else I need to do?
Thanks!
Michele
Find more posts tagged with
Comments
JasonW
Try setting perm gen space:
-XX:MaxPermSize=256m
Jason
mrab
JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx2G -XX:PermSize=512M -XX:MaxPermSize=2G
Used the above options and still got the error: SEVERE: There is insufficient memory to execute this report.
Exception in thread "main" java.lang.OutOfMemoryError
Here is the command I am running on an AIX server that is getting the error:
genReport.sh -f HTML -o mrr.html -p "StartTimestamp=2011-12-13 00:00:00" /tomcat/tomcat5.5/apache-tomcat-5.5.26/webapps/birt-viewer/AIX_Entitlement_Consumption.rptdesign
Any other suggestions?
JasonW
I am a bit confused. If you are using the command line tool genReport why do you have the viewer deployed? If you set the java options in the catalina.bat/sh they will have no effect on the shell. You need to set those options in the shell.
Jason
mrab
You are correct. Sorry, I got myself confused as well! I had the ReportEngine installed under tomcat just like BirtViewer, but that was not necessary. I moved ReportEngine out to its own directory. In any case, the way our AIX admin resolved the out of memory error was by adding the memory option to the JAVACMD inside genReport.sh. It now looks like this:
$JAVACMD -cp "$BIRTCLASSPATH" -Xms128M -Xmx1G -DBIRT_HOME="$BIRT_HOME/ReportEngine" -Dorg.eclipse.datatools_workspacepath="$org_eclipse_datatools_workspacepath"
org.eclipse.birt.report.engine.api.ReportRunner ${1+"$
@}
Thanks for your help!
Michele