Page 1 of 1

How To Increase Java Memory On MacOS

Posted: Sat Sep 24, 2022 8:43 am
by Jamil
I Google searched trying to find how to do this. All attempts failed so far.

I created a vmoptions.txt file within \Applications\Oxygen XML Editor that was plain text containing:
-Xmx8192m

This didn't work.

I also tried editing \Applications\Oxygen XML Editor\oxygen.sh:

Code: Select all

set -- \
 -Xmx8192m\
 -XX:-OmitStackTraceInFastThrow\
 -XX:SoftRefLRUPolicyMSPerMB=10\
 -Dcom.oxygenxml.editor.plugins.dir="$OXYGEN_HOME/plugins"\
 -Dcom.oxygenxml.app.descriptor=ro.sync.exml.EditorFrameDescriptor\
 -Dsun.io.useCanonCaches=true\
 -Dsun.io.useCanonPrefixCache=true\
 -cp "$CP"\
 ro.sync.exml.Oxygen\
 "$@"
This didn't work either.

Re: How To Increase Java Memory On MacOS

Posted: Tue Sep 27, 2022 3:25 pm
by adrian
Hi,

The procedure from the docs seems to have been mixed up a little. Here's the correct one:
To increase the memory available to Oxygen XML Editor on macOS:
  • Right-click the Oxygen XML Editor app in Finder.
  • From the contextual menu, select Show Package Contents.
  • Go to the Contents directory and copy there the vmoptions.txt file.
In short, the vmoptions.txt file should be placed within the Oxygen .app package, in the Contents folder, not directly in the installation folder.
e.g.

Code: Select all

\Applications\Oxygen XML Editor\Oxygen XML Editor.app\Contents\vmoptions.txt
Modifying the .sh script only has effect if you run the said script. If you start Oxygen via the .app launcher, the changes from the .sh script have no effect.

Regards,
Adrian

Re: How To Increase Java Memory On MacOS

Posted: Wed Sep 28, 2022 1:25 am
by Jamil
Thanks.

That was tricky.