User Tools

Site Tools


public:faq:how_to_modify_the_java_heap_size_of_cbkgo_8011

FAQ: How to modify the Java heap size setting of CloudBacko Go?

Article ID: 8011
Reviewed: 22/06/2021

Product Version: CloudBacko Go 8.5 or above
Operating System: All platforms

Description

This document contains instruction on how to modify the Java heap size setting of your CloudBacko Go client application.

Steps

To modify the Java heap size of CloudBacko Go installation on Window, macOS or Linux/FreeBSD, you need to amend the following files:

For Windows:

  • ${Install-Home}\config.ini
  • ${Install-Home}\bin\RunCB.bat

For macOS:

  • ${Install-Home}/config.ini
  • ${Install-Home}/bin/RunCB.sh

For Linux/FreeBSD:

  • ${Install-Home}/config.ini
  • ${Install-Home}/bin/RunCB.sh
  • ${Install-Home}/bin/RunBackupSet.sh

Windows

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

NOTE:

The value 2048 in the above example is the current Java heap size.

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

config.ini
app.system.ui.vm.opt.xms=128
app.system.ui.vm.opt.xmx=4096
app.system.conf.language=en
RunCB.bat
SET PATH=%JAVA_HOME%\bin;%PATH%
SET JAVA_OPTS=-Xms128m -Xmx4096m -XX:MaxDirectMemorySize=1024m…

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

macOS

1. 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 example is the current Java heap size.

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

config.ini
app.system.ui.vm.opt.xms=128
app.system.ui.vm.opt.xmx=4096
app.system.conf.language=en
RunCB.sh
JAVA_OPTS=”-Xrs -Xms128m -Xmx4096m -client
JNI_PATH=“-Djava.library.path=$LIB_HOME”

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

Linux/FreeBSD

1. Open the 'config.ini', 'RunCB.sh' and 'RunBackupSet.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 / RunBackupSet.sh
JAVA_OPTS=“-Xrs -Xms128m -Xmx2048m -client…
JNI_PATH=”-Djava.library.path=$LIB_HOME“

NOTE:

The value 2048 in the above example is the current Java heap size.

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

config.ini
app.system.ui.vm.opt.xms=128
app.system.ui.vm.opt.xmx=4096
app.system.conf.language=en
RunCB.sh
JAVA_OPTS=”-Xrs -Xms128m -Xmx4096m -client…
JNI_PATH=“-Djava.library.path=$LIB_HOME”

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

Keywords

CloudBacko Go, Java, Memory, Heap, RAM

public/faq/how_to_modify_the_java_heap_size_of_cbkgo_8011.txt · Last modified: 2021/06/22 12:17 by support