Windows
To set Java heap size options with Sun Java (JAVA_OPTS environment variable) on Windows
-
On the taskabar, click Start, and then point to Settings, Control Panel, and System.
-
In the System Properties dialog box Advanced tab, click Environment Variables.
-
In the Environment Variables dialog box, under System variables, click New.
-
In the New System Variable dialog box, enter:
-
Variable name: JAVA_OPTS.
-
Variable value -Xms256m -Xmx512m
-
-
Click OK.
-
Verify that the Environment Variables dialog box displays the following system variable name value pair:
JAVA_OPTS="-Xms256m -Xmx512m "
-
Click OK, OK to close the System Properties dialog box.
Unix/Linux
To set Java heap size options with Sun Java (JAVA_OPTS environment variable) on Unix/Linux
-
Start a terminal session.
-
At the command prompt type:
export set JAVA_OPTS=”-Xms256m -Xmx512m”
-
Close the terminal session.
Command Line Settings
The maximum heap size can be set as a parameter in the XbrlCalculate.cmd:
set JAVA_OPTS=-Xms768m -Xmx1g -XX:PermSize=128m -XX:MaxPermSize=256m
java %JAVA_OPTS% -cp "%CLASSPATH%" ubmatrix.xbrl.tools.xbrlCalculate.src.XbrlCalculate %*
or in the XbrlCalculate.sh:
JAVA_OPTS="-Xms768m -Xmx1g -XX:PermSize=128m -XX:MaxPermSize=256m"
java ${JAVA_OPTS} -cp "${CLASSPATH}" ubmatrix.xbrl.tools.xbrlCalculate.src.XbrlCalculate $@