Skip to main content

KB5008: How to modify the Java heap size setting of CloudBacko for Windows & macOS?

Article ID

5008

All Products

Last reviewed date

Solution

To modify the Java heap size of CloudBacko installation on Windows / macOS, amend the following files:

For Windows:

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

For macOS:

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

 

Steps:

1. Open the config.ini and RunCB.bat (for Windows) or RunCB.sh (for macOS) files with a text editor.

2. In config.ini, find the line that starts with:


app.system.ui.vm.opt.xmx=2048


3. In RunCB.bat / RunCB.sh, find the line that starts with:


Windows:

SET JAVA_OPTS=-Xms128m -Xmx2048m -XX:MaxDirectMemorySize=1024m ...

macOS:

JAVA_OPTS="-Xrs -Xms128m -Xmx2048m -client"


4. Amend the line by changing the value "xmx=2048" & "-Xmx2046m" to "xmx=4096" & "-Xmx4096m"  (value in MB) (depending on the amount of free system memory available)

6. Save the changes and restart the CloudBacko service.

Keywords