SET "DEP_LIB_PATH=X64" SET JAVA_OPTS=-Xms128m -Xmx2048m - XX:MaxDirectMemorySize=1024m (Note: There are two sections here that are similar, one that is X86 and one that is X64, we need to edit the X64 section – see below)
Virtualization
title: "Retrospect Virtual - Error: java.lang.OutOfMemoryError: Java heap space" created_at: 2020.02.05 updated_at: 2020.02.05 category: Virtualization --- If you are getting an error from your Retrospect Virtual backup logs that state “java.lang.OutOfMemoryError: Java heap space”, please do the following:
From the machine where Retrospect Virtual Host Server is installed, press Windows key + R to open the run command, type services.msc
and hit OK.
Stop the Retrospect Virtual Host Server Services.
Go to C:\Program Files\RetrospectVHS
and make a copy of config.ini
(or config
if listed).
Right click on config.ini
and edit it with a text editor.
Change app.system.ui.vm.opt.xmx=2048
to app.system.ui.vm.opt.xmx=4096
and save the config file.
Go to C:\Program Files\RetrospectVHS\bin
and make a copy of RunCB.bat
(or RunCB
if listed).
Right click on RunCB.bat
and edit it with a text editor.
Find the section with the following:
SET "DEP_LIB_PATH=X64" SET JAVA_OPTS=-Xms128m -Xmx2048m - XX:MaxDirectMemorySize=1024m (Note: There are two sections here that are similar, one that is X86 and one that is X64, we need to edit the X64 section – see below)
Change the Xmx2048
to Xmx4096
and then save the bat file.
Go back to services.msc
, start the Retrospect Virtual Host Server Services
and try your backup again.
Last Update: 05. Februar 2020