User Tools

Site Tools


Sidebar

Announcement

Ahsay Backup Software

Backup Set Types

Supported Storage

Features in OBM / ACB

Features in CBS

Brand and Customize

License

Documentation

Performance Testing

FAQs and Known Issues

Can't Find What You Need?

public:8011_faq:how_to_modify_the_java_heap_size_of_ahsayobc

[V8] FAQ: How to modify the Java heap size setting of AhsayOBM / AhsayACB?

Article ID: 8011
Reviewed: 2022-03-17

Product Version:
AhsayACB / AhsayOBM: 8.1 to 8.x
OS: All platforms

Description

This article outlines the steps required to modify the Java heap size of AhsayOBM / AhsayACB.

Steps

This document contains instruction on how to modify the Java heap size setting of your AhsayOBM / ACB client application.

Table of Contents:

How to modify the Java heap size setting of AhsayACB:
To modify the Java heap size of AhsayACB installation on Window / Mac OS X, amend the following files:

For Windows:
  • ${AhsayACB-Install-Home}\config.ini
  • ${AhsayACB-Install-Home}\bin\RunCB.bat
For Mac OS X:
  • ${AhsayACB-Install-Home}/config.ini
  • ${AhsayACB-Install-Home}/bin/RunCB.sh
  1. ( For Windows ) Open the 'config.ini' and 'RunCB.bat' files with a text editor:

    config.ini
    app.system.ui.vm.opt.xms=128
    app.system.ui.vm.opt.xmx=2048
    app.system.conf.language=en

    RunCB.bat
    ...
    SET PATH=%JAVA_HOME%\bin;%PATH%
    ...
    SET JAVA_OPTS=-Xms128m -Xmx2048m -XX:MaxDirectMemorySize=1024m ...
    ...
    ( For Mac OS X ) Open the 'config.ini' and 'RunCB.sh' files with a text editor:

    config.ini
    app.system.ui.vm.opt.xms=128
    app.system.ui.vm.opt.xmx=2048
    app.system.conf.language=en

    RunCB.sh
    ...
    JAVA_OPTS="-Xrs -Xms128m -Xmx2048m -client"
    JNI_PATH="-Djava.library.path=$LIB_HOME"
    ...
    Note:
    The value 2048, in the above examples are the current Java heap size (in MB).


  2. Amend the line by changing the value to '4096' (value in MB) (depending on the amount of free system memory available), so the line will appear similar to the example as follows:

    ( For Windows ) Open the 'config.ini' and 'RunCB.bat' files with a text editor:

    config.ini (Updated)
    app.system.ui.vm.opt.xms=128
    app.system.ui.vm.opt.xmx=4096
    app.system.conf.language=en

    RunCB.bat (Updated)
    ...
    SET PATH=%JAVA_HOME%\bin;%PATH%
    ...
    SET JAVA_OPTS=-Xms128m -Xmx4096m -XX:MaxDirectMemorySize=1024m ...
    ...
    ( For Mac OS X ) Open the 'config.ini' and 'RunCB.sh' files with a text editor:

    config.ini (Updated)
    app.system.ui.vm.opt.xms=128
    app.system.ui.vm.opt.xmx=4096
    app.system.conf.language=en

    RunCB.sh (Updated)
    ...
    JAVA_OPTS="-Xrs -Xms128m -Xmx 4096m -client"
    JNI_PATH="-Djava.library.path=$LIB_HOME"
    ...

  3. Save the changes, then restart the scheduler service.


How to modify the Java heap size setting of AhsayOBM:
To modify the Java heap size of AhsayOBM installation on Window, Mac OS X, Linux or NAS, you need to amend the following files:

For Windows:
  • ${AhsayOBM-Install-Home}\config.ini
  • ${AhsayOBM-Install-Home}\bin\RunCB.bat
For Mac OS X:
  • ${AhsayOBM-Install-Home}/config.ini
  • ${AhsayOBM-Install-Home}/bin/RunCB.sh
For Linux:
  • ${AhsayOBM-Install-Home}/config.ini
  • ${AhsayOBM-Install-Home}/bin/RunCB.sh
  • ${AhsayOBM-Install-Home}/bin/RunBackupSet.sh
For NAS:
  • ${AhsayOBM-Install-Home}/config.ini

    1. ( For Windows ) Open the 'config.ini' and 'RunCB.bat' files with a text editor:

      config.ini
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=2048
      app.system.conf.language=en

      RunCB.bat
      ...
      SET PATH=%JAVA_HOME%\bin;%PATH%
      ...
      SET JAVA_OPTS=-Xms128m -Xmx2048m -XX:MaxDirectMemorySize=1024m ...
      ...

      ( For Mac OS X ) Open the 'config.ini' and 'RunCB.sh' files with a text editor:

      config.ini
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=2048
      app.system.conf.language=en

      RunCB.sh
      ...
      JAVA_OPTS="-Xrs -Xms128m -Xmx2048m -client"
      JNI_PATH="-Djava.library.path=$LIB_HOME"
      ...

      ( For Linux ) Open the 'config.ini', 'RunCB.sh' and RunBackupSet.sh files with a text editor:
      ( For NAS ) Open the 'config.ini' file with a text editor:

      config.ini
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=2048
      app.system.conf.language

      RunCB.sh / RunBackupSet.sh
      ...
      JAVA_OPTS="-Xrs -Xms128m -Xmx2048m -client ...
      JNI_PATH="-Djava.library.path=$LIB_HOME"
      ...
      Note:
      The value 2048, in the above examples are the current Java heap size (in MB).


    2. Amend the line by changing the value to '4096' (value in MB) (depending on the amount of free system memory available), so the line will appear similar to the example as follows:

      ( For Windows ) Open the 'config.ini' and 'RunCB.bat' files with a text editor:

      config.ini (Updated)
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=4096
      app.system.conf.language=en

      RunCB.bat (Updated)
      ...
      SET PATH=%JAVA_HOME%\bin;%PATH%
      ...
      SET JAVA_OPTS=-Xms128m -Xmx4096m -XX:MaxDirectMemorySize=1024m ...
      ...

      ( For Mac OS X ) Open the 'config.ini' and 'RunCB.sh' files with a text editor:

      config.ini (Updated)
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=4096
      app.system.conf.language=en

      RunCB.sh (Updated)
      ...
      JAVA_OPTS="-Xrs -Xms128m -Xmx 4096m -client"
      JNI_PATH="-Djava.library.path=$LIB_HOME"
      ...

      ( For Linux ) Open the 'config.ini', 'RunCB.sh' and 'RunBackupSet.sh' files with a text editor:
      ( For NAS ) Open the 'config.ini' file with a text editor:

      config.ini (Updated)
      app.system.ui.vm.opt.xms=128
      app.system.ui.vm.opt.xmx=4096
      app.system.conf.language=en

      RunCB.sh / RunBackupSet.sh (Updated)
      ...
      JAVA_OPTS="-Xrs -Xms128m -Xmx4096m -client ...
      JNI_PATH="-Djava.library.path=$LIB_HOME"
      ...

    3. Save the changes, then restart the AhsayOBM scheduler service.

Keywords

OBC, OBM, Java, Memory, Heap, RAM

public/8011_faq/how_to_modify_the_java_heap_size_of_ahsayobc.txt · Last modified: 2022/03/18 09:09 by kirk.lim

Page Tools