Pages: 1
Print
Author Topic: how to get around the java.lang.OutOfMemoryError when creating PDF  (Read 2289 times)
Wim Hooghwinkel - iDTP
Member

Posts: 22


« on: October 22, 2012, 11:54:28 AM »

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
Logged

W
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: October 22, 2012, 02:59:31 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).
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #2 on: January 08, 2013, 04:11:17 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).


* ant_opts.jpg (43.57 KB, 443x439 - viewed 484 times.)
Logged
Pages: 1
Print
Jump to:  

email us