java.lang.OutOfMemoryError: Java heap space ahsay


These errors can be seen in Ahsay OBM
java.lang.OutOfMemoryError: Java heap space
Unable to generate Delta File, is being backed up in its entirety.[cm] Java heap space


The server is running out of Java RAM.
This can cause various errors or force a full backup each time.
We normally see this error on larger backups such as Hyper V, VMware, Sys State and bare metal.

Version 8 fix:

Using notepad (as Admin), edit C:\Program Files\serverbackup\config.ini

The original line should read as follows:
app.system.ui.vm.opt.xmx=1024 or 2048


Change the value to 4096

Edit C:\Program Files\serverbackup\bin\RunCB.bat

The original line should read as follows:
SET JAVA_OPTS=-Xms128m -Xmx2048m -XX:MaxDirectMemorySize=1024m


Change the value to 4096

Restart the Windows service named server services.

Restart the backup.

Changing the value to 4096 will reserve 4GB of RAM for the Java heap. It is not uncommon for large database backups to require 4GB.
Make sure your system has enough available RAM beforehand because RAM allocated to Java heap will not be available for Windows to use.

The issue can also occur on Ahsay OBS