One of the last things I added to the m1 pdf plugin was an option to move the
table of contents to the end of the pdf. This removes the page-number forward
references and solved some reported memory problems, see
http://jira.codehaus.org/browse/MPPDF-62.
So if this is an option for you, you can try to move the TOC to the end of the
pdf, or skip it entirely.
HTH,
-Lukas
Siegfried Goeschl wrote:
Hi Kent,
I do not know the current incarnation of the plugin but worked with
DocBook before - the transformation takes a lot of memory since it
requires the PDF to be generated completely in-memory to resolve all the
page numbers and cross-references. I think with M1 it took more than 1GB
to generate th O'Reily SVN book ...
Cheers,
Siegfried Goeschl
Kent Närling wrote:
When I try to build some of our project using the docbkx docbook plugin, I
get the following out of memory exception:
INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:183)
at org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:68)
at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:161)
at
org.apache.fop.fo.properties.CommonBorderPaddingBackground.<init>(CommonBorderPaddingBackground.java:172)
at
org.apache.fop.fo.PropertyList.getBorderPaddingBackgroundProps(PropertyList.java:577)
at org.apache.fop.fo.pagination.Region.bind(Region.java:64)
at org.apache.fop.fo.pagination.RegionBody.bind(RegionBody.java:56)
at org.apache.fop.fo.FObj.processNode(FObj.java:125)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:320)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at
com.agilejava.docbkx.maven.AbstractPdfMojo.postProcessResult(AbstractPdfMojo.java:85)
at
com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMojo.java:174)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
It only occurs when I build the docbook pdf files, anyone know why this
happens?
Also, it does go away if I increase the heap space to 1,5 Mb, but that is
hard to change in all environments etc...
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]