[WARN] BUILD FAILED ... java.lang.OutOfMemoryError: Java heap space

This occurs when someone uses many DITA/XML source documents for output. There is an override that you can perform to resolve this issue, it requires modification of an XSL file.

For Pro users,

1. Override the following "Adapter" file:Adapters\xml\scripts\dita\xsl\batch-files.xsl (you can open this file in a program such as Notepad)

2. Search for the line containing "ANT_OPTS" (there are two): set ANT_OPTS=-Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl

3. To each of these lines, Add Java VM memory size options: -Xms128M -Xmx1024M

4. Save the file, and regenerate output

For Express users,

1. Edit the file: C:\Program Files\WebWorks\ePublisher Express\Helpers\apache-ant\bin\ant.bat

2. Search for ant-launcher.jar and then add -Xmx512m after the quotation

3. Save the file, and regenerate output


CategorySolutionsOutputJava

LaurenLever/@Solutions/Output/JavaHelp/Build Failed (last edited 2009-06-02 21:00:33 by LaurenLever)