Page 1 of 1

Build from command line using new publishing template

Posted: Thu Apr 12, 2018 3:20 pm
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

Re: Build from command line using new publishing template

Posted: Fri Apr 13, 2018 3:19 pm
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).

Re: Build from command line using new publishing template

Posted: Fri Apr 13, 2018 4:10 pm
by ann.jensen
Thanks. So where should i specify JVM parameters for a command line build?
Regards,
Ann

Re: Build from command line using new publishing template

Posted: Mon Apr 16, 2018 3:47 pm
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.

Re: Build from command line using new publishing template

Posted: Thu Apr 19, 2018 12:03 pm
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

Re: Build from command line using new publishing template

Posted: Mon Apr 23, 2018 8:47 pm
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

Re: Build from command line using new publishing template

Posted: Tue Apr 24, 2018 10:11 am
by ann.jensen
Hi Radu,
I actually did yesterday to Bogdan :-)
Regards,
Ann