Increasing Memory Allocation for Java

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.

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

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. Uncheck the Prefer using the "dita" command option
  5. Locate the JVM Arguments and increase the default value. For instance, to set 2 gigabytes as the maximum amount of memory, you can use: -Xmx2g. If you do not specify the -Xmx value in this field, by default, the application will use a maximum of 512 megabytes when used with a 32-bit Java Virtual Machine and one gigabyte with a 64-bit Java Virtual Machine.
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