DITA and XMetaL Discussion
Wim Hooghwinkel – iDTP October 22, 2012 at 5:54 pm
how to get around the java.lang.OutOfMemoryError when creating PDFOctober 22, 2012 at 5:54 pmParticipants 1Replies 2Last 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?
WimDerek Read October 22, 2012 at 8:59 pm
Reply to: how to get around the java.lang.OutOfMemoryError when creating PDFOctober 22, 2012 at 8:59 pm
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).Derek Read January 8, 2013 at 10:11 pm
Reply to: how to get around the java.lang.OutOfMemoryError when creating PDFJanuary 8, 2013 at 10:11 pm
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).
- You must be logged in to reply to this topic.