How To Increase Java Memory On MacOS

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Jamil
Posts: 97
Joined: Thu Oct 23, 2008 6:29 am

How To Increase Java Memory On MacOS

Post 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.
adrian
Posts: 2805
Joined: Tue May 17, 2005 4:01 pm

Re: How To Increase Java Memory On MacOS

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jamil
Posts: 97
Joined: Thu Oct 23, 2008 6:29 am

Re: How To Increase Java Memory On MacOS

Post by Jamil »

Thanks.

That was tricky.
Post Reply