OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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

I'm still encountering an OutOfMemory error using Fop 0.20.5. Would someone confirm that my fop.bat file looks to be correct (presuming 768 MB of memory allocation)?

set CLASSPATH=<paths to my Fop .JAR files>

java  -Xmx768m org.apache.fop.apps.Fop

I think I'm following the correct syntax, as described in DocBook XSL: The Complete Guide ("FOP java.lang.OutOfMemoryError" section), but want to be sure.

On 4/21/06, Mark Peters <flickrmeister@gmail.com> wrote:

I decided to experiment, and specified a minimum memory allowance for Java in my fop.bat file:
java -Xms2048m -Xmx2048m
In 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.
          <imagedata fileref="images/filename.gif" width="2.283in" align="center"/>
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.
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 Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]