Page 1 of 1

How to solve out of memory error

Posted: Tue May 15, 2018 8:25 am
by dpksaini89
Hi I am getting "Out of Memory" error while dita map pdf transformation.
Please help its urgent i have to publish the doc asap.
Please suggest how to resolve this error.
Image

Re: How to solve out of memory error

Posted: Tue May 15, 2018 8:30 am
by Radu
Hi,

Edit the transformation scenario you are using in Oxygen to publish to PDF and in the Advanced tab there is a "JVM Arguments" field in which you can increase the maximum amount of memory given to Oxygen, for example change its value from the default -Xmx384m to -Xmx1024m

https://www.oxygenxml.com/doc/versions/ ... anced.html

Regards,
Radu

Re: How to solve out of memory error

Posted: Tue May 15, 2018 8:55 am
by dpksaini89
Thanks it worked.

Re: How to solve out of memory error

Posted: Tue May 15, 2018 1:51 pm
by dpksaini89
Hi It was working fine. But now it has again started through error. with -Xmx1024m.

what is the maximum value I can give here?
Or is there any other way to prevent re-occurring errors.

Re: How to solve out of memory error

Posted: Tue May 15, 2018 2:02 pm
by Radu
Hi,

Do you obtain the out of memory on the same DITA project as before or on a different one?
The maximum amount of memory that you can pass to the started publishing process may depend on the total amount of RAM memory available on your computer. -Xmx1024m means one gigabyte of RAM memory. If you pass a very large value, larger than the internal memory available on your computer, the publishing will fail to start.

Regards,
Radu