Build from command line using new publishing template

ann.jensen
Posts: 228

Build from command line using new publishing template

Thu Apr 12, 2018 3:20 pm

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: 336
Location: Craiova

Re: Build from command line using new publishing template

Fri Apr 13, 2018 3:19 pm

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: 228

Re: Build from command line using new publishing template

Fri Apr 13, 2018 4:10 pm

Thanks. So where should i specify JVM parameters for a command line build?
Regards,
Ann
radu_pisoi
Posts: 336
Location: Craiova

Re: Build from command line using new publishing template

Mon Apr 16, 2018 3:47 pm

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: 228

Re: Build from command line using new publishing template

Thu Apr 19, 2018 12:03 pm

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: 6055

Re: Build from command line using new publishing template

Mon Apr 23, 2018 8:47 pm

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: 228

Re: Build from command line using new publishing template

Tue Apr 24, 2018 10:11 am

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest