Build from command line using new publishing template

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Build from command line using new publishing template

Post by ann.jensen »

Hi,
Prior to release 20 of Oxygen XML Author and WebHelp, I had used dita.bat command in my command line window with reference to a .properties file to build my DITA content out to webhelp responsive. My .properties file had an entry as follows

Code: Select all

baseJVMArgLine=-Xmx4000m
Now that I am using a publishing template, can I add the same entry for JVM memory to the .opt file in a parameter tag?

Code: Select all

<parameter name="baseJVMArgLine" value="Xmx4000m"/>     
I have tried this but it is taking hours for my build to complete from the command line.

Any advice appreciated,
Regards,
Ann
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Build from command line using new publishing template

Post by radu_pisoi »

Hi,

No, you cannot specify JVM parameters in a publishing template.

Also, in a publishing template it is not recommended to specify an input/output parameter (such as the input Map, DITAVAL file, or temporary directory).
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Re: Build from command line using new publishing template

Post by ann.jensen »

Thanks. So where should i specify JVM parameters for a command line build?
Regards,
Ann
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Build from command line using new publishing template

Post by radu_pisoi »

Hi,
Thanks. So where should i specify JVM parameters for a command line build?
Please see the Increasing Java memory allocation topic from the DITA-OT documentation.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Re: Build from command line using new publishing template

Post by ann.jensen »

Hi,
My ANT_OPTS env variable is set to -Xmx6000m -Xms512m in my system environment variables for Windows 10.
I have removed the JVM setting from my publishing template

But this doesn't seem to be sufficient for building from command line using WebHelp V 20. I am still getting

Code: Select all

java.lang.OutOfMemoryError: GC overhead limit exceeded
Am I missing a setting somewhere to increase memory usage for DITA-OT?
Regards,
Ann
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Build from command line using new publishing template

Post by Radu »

Hi Ann,

So you are using this way of starting the publishing process, right?
http://www.dita-ot.org/2.5/getting-star ... mmand.html

Maybe you can pass the "-v" argument to the "dita" command to be more verbose and send us (support@oxygenxml.com) the entire console output received in the console window.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Re: Build from command line using new publishing template

Post by ann.jensen »

Hi Radu,
I actually did yesterday to Bogdan :-)
Regards,
Ann
Post Reply