Knowledgebase: Solar Vault
How do I modify the Java heap size for SolarVault Pro or SolarVault Lite?
Posted by Support on 23 January 2014 01:46 PM

Product Versions:
SolarVault Lite: Post-5.5.1.0
SolarVault Pro: Post-5.2.4.0

OS: All platforms

This document contains the information of how to modify the Java heap size of SolarVault pro and SolarVault Lite.

Instruction for solarVault Lite version 5.5.x / 6.x

        :To modify the Java heap size of SolarVault Lite version 5.5.x / 6.x, you need to amend the following files:

 

      For Windows:
      • ${SolarVault Lite-Install-Home}\config.ini
      • ${SolarVault Lite-Install-Home}\bin\RunOBC.bat
      For Mac OS X:
      • ${SolarVault Lite-Install-Home}/config.ini  
      • ${SolarVault Lite-Install-Home}/bin/RunOBC.sh
      1. Please open "config.ini" and "RunOBC.bat" with a text editor and you should see entries as shown below:
         
         app.system.ui.vm.opt.xms=32
         app.system.ui.vm.opt.xmx=384
         app.system.conf.language
         
        ...
         SET JAVA_HOME=%OBC_HOME%\jvm
         SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
         SET JAVA_OPTS=-Xms32m -Xmx512m -Dsun.java2d.noddraw
        ...
      2. The value 384 and 512 is the current Java heap size which by default is 384MB and 512MB
      3. Please amend the line by changing the default value to "768", (or 1028 depending on the amount of free system memory available) so the line will appear similar to the example as follows:
         
         app.system.ui.vm.opt.xms=32
         app.system.ui.vm.opt.xmx=768
         app.system.conf.language
         
        ...
         SET JAVA_HOME=%SolarVault Lite_HOME%\jvm
         SET JAVA_EXE=%SolarVault Lite_HOME%\jvm\bin\java.exe
         SET JAVA_OPTS=-Xms32m -Xmx768m -Dsun.java2d.noddraw
        ...
      4. Once done, please restart the SolarVault Lite scheduler service

Instruction for SolarVault Pro version 5.5.x / 6.x

      :To modify the Java heap size of SolarVault Pro version 5.5.x / 6.x, you need to amend the following files:

 

    For Windows:
    • ${SolarVault Pro-Install-Home}\config.ini
    • ${SolarVault Pro-Install-Home}\bin\RunOBC.bat
    For Linux / Unix / Mac OS X:
    • ${SolarVault Pro-Install-Home}/config.ini  
    • ${SolarVault Pro-Install-Home}/bin/RunBackupSet.sh
    1. Please open "config.ini", "RunOBC.bat" or "RunBackupSet.sh" with a text editor and you should see entries as shown below:
       
       app.system.ui.vm.opt.xmx=384
       app.system.ui.vm.opt.xms=32
       app.system.common.format.datetime.hourinday=true
       
      ...
       SET JAVA_HOME=%OBC_HOME%\jvm
       SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
       SET JAVA_OPTS=-Xms32m -Xmx512m -Dsun.java2d.noddraw
      ...
       
      ...
       LIB_HOME=./bin
       JAVA_OPTS="-Xmx256m -Djava.library.path=$APP_HOME/bin"
       CLASSPATH=$LIB_HOME:$LIB_HOME/obm.jar:$LIB_HOME/obm-lib.jar
       MAIN_CLASS=RunBackupSet
      ...
    2. The value 384, 512 and 256 is the current Java heap size which by default is 384MB, 512MB and 256MB
    3. Please amend the line by changing the default value to "768", (or 1024 depending on the amount of free system memory available) so the line will appear similar to the example as follows:
       
       app.system.ui.vm.opt.xmx=768
       app.system.ui.vm.opt.xms=32
       app.system.common.format.datetime.hourinday=true
       
      ...
       SET JAVA_HOME=%OBC_HOME%\jvm
       SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
       SET JAVA_OPTS=-Xms32m -Xmx768m -Dsun.java2d.noddraw
      ...
       
      ...
       LIB_HOME=./bin
       JAVA_OPTS="-Xmx768m -Djava.library.path=$APP_HOME/bin"
       CLASSPATH=$LIB_HOME:$LIB_HOME/obm.jar:$LIB_HOME/obm-lib.jar
       MAIN_CLASS=RunBackupSet
      ...
    4. Once done, please restart the SolarVault Pro scheduler service