Edit online

If you are working with a large project with extensive metadata or key references, you may need to increase the amount of memory that is allocated to the Java process that performs the publishing.

When the Transformation is Started from Oxygen

To alter the memory allocation setting from the transformation scenario, follow these steps:
  1. Open the Configure Transformation Scenario(s) dialog box.
  2. Select your transformation scenario, then click Edit.
  3. Go to the Advanced tab.
  4. Locate the JVM Arguments and increase the default value. For instance, to set 1GB as the maximum amount of memory, you can specify: -Xmx1024m.
Note: This memory setting is used by both the DITA-OT process and the Chemistry CSS processor.

When the Transformation is Started from the Command Line

There can be two situations where an out of memory error can be triggered:

  • From the DITA-OT basic processing (the preparation of the merged XML document).
  • From the Chemistry PDF CSS processor (the transformation of the merged XML document to PDF).

To solve both of them, you can change the value of the ANT_OPTS environment variable from a command line for a specific session.

Example: To increase the JVM memory allocation to 1024 MB for a specific session, issue the following command from a command prompt (depending on your operating system):
  • Windows
    set ANT_OPTS=%ANT_OPTS% -Xmx1024M
  • Linux/Mac OS X
    export ANT_OPTS=$ANT_OPTS -Xmx1024M
Tip: To persistently change the memory allocation, change the value allocated to the ANT_OPTS environment variable on your system.
If the Chemistry PDF CSS processor fails with an Out Of Memory Error, try adding the baseJVMArgLine parameter to the DITA-OT command line. For example:
-DbaseJVMArgLine=-Xmx984m