DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion how to get around the java.lang.OutOfMemoryError when creating PDF

  • Wim Hooghwinkel – iDTP

    how to get around the java.lang.OutOfMemoryError when creating PDF

    Participants 1
    Replies 2
    Last Activity 9 years, 11 months ago

    Win7 64 bit; XMetaL 7.0

    We are working with ditamaps and topics that use a lot of conrefs. Processing by the OT directly can only be done on a 64 bit system when we set the java memory limit to 6GB.

    I set the Ant_Opts and Java_Opts to 6Gb in the Windows system environment variables – that works for the OT but XMetaL doesn't seem to pick this up.

    – how can we set these variables for XMetaL?
    – hoe can we get XMetaL to use the 64bit Java JRE and JDK?
    – is there a 64 bit XMetaL version available?

    thanks,

    Wim

    Reply

    Derek Read

    Reply to: how to get around the java.lang.OutOfMemoryError when creating PDF

    XMetaL can use an alternate version of JRE if you want to try it. We only test using JRE 1.5 however and we know everything works with it and can't recommend any other version. If you have tested with another JRE and know it works then presumably it would be OK.

    You can try the following:

    Tools > Configure Output > Advanced (tab) and then in the “Other output parameters” section add the following:
    JAVA_HOME  =  C:your_java_folder

    Specify the folder containing your copy of Java, not the path to the executable (java.exe).

    When you generate output you should see that value being set in the DITA output log (opened in XMetaL as log.xml if you have it configured to open the log file).

    Reply

    Derek Read

    Reply to: how to get around the java.lang.OutOfMemoryError when creating PDF

    You can set ANT_OPTS in Tools > Configure Output on the Advanced tab (see attached screen capture).
    The default setting for XMetaL Author Enterprise 6.0 was ANT_OPTS = "-Xmx256m"
    The default setting for XMetaL Author Enterprise 7.0 is ANT_OPTS = "-Xmx512m"

    JAVA_OPTS should not be needed in 7.0 as all of the “deliverables” now use ANT to generate output (in previous versions some used JAVA and some used ANT).

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support