[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Fop error: java.lang.OutOfMemoryError error when generating a PDF
set CLASSPATH=<paths to my Fop .JAR files>
java -Xmx768m org.apache.fop.apps.Fop
I decided to experiment, and specified a minimum memory allowance for Java in my fop.bat file:java -Xms2048m -Xmx2048mIn the Windows Task Manager, the Java process STILL reportedly consumes 70 MB of memory or less. Maybe I'm missing something about the min and max memory options.In any case, I tracked down the cause of my OutOfMemoryError issue. It was apparently caused by a series of around a dozen images in one chapter of my book. The odd thing is, the images are tiny GIF files, averaging 9 KB.<mediaobject>
<imageobject>
<imagedata fileref="images/filename.gif" width="2.283in" align="center"/>
</imageobject>
</mediaobject>When I removed the references, Fop successfully generated PDFs for all of the versions of my book.If anyone has an idea how a handful of small image references could cause Fop to run out of memory, I'd appreciate hearing it.Thanks!Mark Peters
On 4/21/06, George Cristian Bina <george@oxygenxml.com > wrote:Hi Mark,
Yes, Java can consume less memory but in that case it should not give an
OutOfMemoryError and in your case you said that you observed only 70MB
taken by Java while you gave it 2GB.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]