Retrospect Virtual: Java Heap Space Error with Java.lang.OutOfMemoryError

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:

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

  2. Stop the Retrospect Virtual Host Server Services.

  3. Go to C:\Program Files\RetrospectVHS and make a copy of config.ini (or config if listed).

  4. Right click on config.ini and edit it with a text editor.

  5. Change app.system.ui.vm.opt.xmx=2048 to app.system.ui.vm.opt.xmx=4096 and save the config file.

  6. Go to C:\Program Files\RetrospectVHS\bin and make a copy of RunCB.bat (or RunCB if listed).

  7. Right click on RunCB.bat and edit it with a text editor.

  8. 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)

    Virtual heap space

  9. Change the Xmx2048 to Xmx4096 and then save the bat file.

  10. Go back to services.msc, start the Retrospect Virtual Host Server Services and try your backup again.


Last Update: 2020年02月05日