Configuring the Java Virtual Manager (JVM)

Windows

To set Java heap size options with Sun Java (JAVA_OPTS environment variable) on Windows

  1. On the taskabar, click Start, and then point to Settings, Control Panel, and System.

  2. In the System Properties dialog box Advanced tab, click Environment Variables.

  3. In the Environment Variables dialog box, under System variables, click New.

  4. In the New System Variable dialog box, enter:

    1. Variable name: JAVA_OPTS.

    2. Variable value -Xms256m -Xmx512m

  5. Click OK.

  6. Verify that the Environment Variables dialog box displays the following system variable name value pair:

    JAVA_OPTS="-Xms256m -Xmx512m "

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

  1. Start a terminal session.

  2. At the command prompt type:

    export set JAVA_OPTS=”-Xms256m -Xmx512m”

  3. 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 $@

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值