<oXygen/> User Guide |
When starting Oxygen it is possible to specify the amount of memory that will be available to the application by adjusting parameter variables contained in the startup script.
While there are minor changes in syntax to cater for differences in operating systems, the general structure of the command is as follows: [execute] [memory variables] [application path] [call main class] [pass script arguments to main class].
For memory management we are only interested in the [memory variables] portion of the command. The installation default for the memory value is set to a value from 140 to 256 MB, as shown in the following example, where -Xmx256m establishes the maximum memory to be used to 256 MB. Adjust this value as required.
Another way to modify the available memory, if you are using the installer, is editing the oxygen.lax file located in the install folder and changing the parameter "lax.nl.java.option.additional" to lax.nl.java.option.additional = -Xmx256m -Dcom.oxygenxml.MultipleInstances=true The Xmx value represents the maximum memory for each editor instance.
When installed on a multi-user environment such as Windows Terminal Server or Unix/Linux, each instance of Oxygen will be allocated the amount stipulated in the memory value. To avoid depreciating the general performance of the host system, please ensure that the amount of memory available is optimally apportioned for each of the expected instances.
Example 2.1. Example Startup Script (Windows)
java -Xmx256m -cp ".: ./lib/oxygen.jar: classes" ro.sync.exml.oxygen $1 $2 $3 $4
Modifying the value from 256 to 100 sets the memory available from 256 to 100.