How do I modify the Java heap size of DotnetOBM or DotnetACB?







Instruction for DotnetACB version 5.5.x / 6.x:

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

For Windows:
  • ${DotnetACB-Install-Home}\config.ini
  • ${DotnetACB-Install-Home}\bin\RunOBC.bat

For Mac OS X:
  • ${DotnetACB-Install-Home}/config.ini
  • ${DotnetACB-Install-Home}/bin/RunOBC.sh


  • Please open "config.ini" and "RunOBC.bat" with a text editor and you should see entries as shown below:

    config.ini:

    app.system.ui.vm.opt.xms=32
    app.system.ui.vm.opt.xmx=384
    app.system.conf.language

    RunOBC.bat:

    ...
    SET JAVA_HOME=%OBC_HOME%\jvm
    SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
    SET JAVA_OPTS=-Xms32m -Xmx512m -Dsun.java2d.noddraw
    ...

  • The value 384 and 512 is the current Java heap size which by default is 384MB and 512MB


  • 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:

     

    config.ini (Updated):

    app.system.ui.vm.opt.xms=32
    app.system.ui.vm.opt.xmx=768
    app.system.conf.language

    RunOBC.bat (Updated):

    ...
    SET JAVA_HOME=%DotnetOBM_HOME%\jvm
    SET JAVA_EXE=%DotnetOBM_HOME%\jvm\bin\java.exe
    SET JAVA_OPTS=-Xms32m -Xmx768m -Dsun.java2d.noddraw
    ...

  • Once done, please restart the DotnetACB scheduler service



  • Instruction for DotnetOBM version 5.5.x / 6.x:

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

    For Windows:
    • ${DotnetOBM-Install-Home}\config.ini
    • ${DotnetOBM-Install-Home}\bin\RunOBC.bat

    For Linux / Unix / Mac OS X:
    • ${DotnetOBM-Install-Home}/config.ini
    • ${DotnetOBM-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:

      config.ini:

      app.system.ui.vm.opt.xmx=384
      app.system.ui.vm.opt.xms=32
      app.system.common.format.datetime.hourinday=true

      RunOBC.bat:

      ...
      SET JAVA_HOME=%OBC_HOME%\jvm
      SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
      SET JAVA_OPTS=-Xms32m -Xmx512m -Dsun.java2d.noddraw
      ...

      RunBackupSet.sh:

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

      config.ini (updated):

      app.system.ui.vm.opt.xmx=768
      app.system.ui.vm.opt.xms=32
      app.system.common.format.datetime.hourinday=true

      RunOBC.bat (updated):

      ...
      SET JAVA_HOME=%OBC_HOME%\jvm
      SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
      SET JAVA_OPTS=-Xms32m -Xmx768m -Dsun.java2d.noddraw
      ...

      RunBackupSet.sh (updated):

      ...
      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 DotnetOBM scheduler service


    Was this answer helpful?

    Add to Favourites Add to Favourites    Print this Article Print this Article

    Also Read
    Linux QuickStart Guide (Views: 5274)
    Supported Platform List (Views: 6170)

    Powered by WHMCompleteSolution

    Why DOTNET SERVICES?

    All web hosting plans come with the following cool features!
    • Powerful Control Panel
    • 24/7 Email Support
    • 30 Days Money Back Guarantee
    • 99.9% Uptime Guarantee
    • Unlimited Email accounts
    • Unlimited MySQL Databases
    • FREE Domain Name

    TELL ME MORE

    Follow Us