Memory Management

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 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.

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.