Betriebsystem
All platformsSoftware
5.x - 6.xFehler Meldung
java.lang.OutOfMemoryError: Java heap spaceUrsache
The software reached the maximum allowed amount of RAM memory resulting in the above error.Lösung
! Newer software might have different values or be more effecient with it's RAM usage.To modify the Java heap size of 5.5.x / 6.x, you need to amend the following files:
For Windows:
- ${Install-Home}\config.ini
- ${Install-Home}\bin\RunOBC.bat
- ${Install-Home}\bin\RunBackupSet.bat
- ${Install-Home}/config.ini
- ${Install-Home}/bin/RunOBC.sh
- ${Install-Home}/bin/ RunBackupSet.sh
(The current values in the example may differ per software version)
config.ini: |
app.system.ui.vm.opt.xms=32 app.system.ui.vm.opt.xmx=384 app.system.conf.language |
RunOBC.bat: |
… SET JAVA_HOME=%OBC_HOME%\jvm SET JAVA_EXE=%JAVA_HOME%\bin\java.exe SET JAVA_OPTS=-Xms32m -Xmx512m -Dsun.java2d.noddraw … |
RunBackupSet.bat: |
… LIB_HOME=./bin JAVA_OPTS="-Xmx256m -Djava.library.path=$APP_HOME/bin" CLASSPATH=$LIB_HOME:$LIB_HOME/obm.jar:$LIB_HOME/obm-lib.jar MAIN_CLASS=RunBackupSet … |
Please amend the line by changing the default value to "768", (or 1024 depending on the amount of free system memory available) so the line will appear similar to the example as follows:
config.ini (Updated): |
app.system.ui.vm.opt.xms=32 app.system.ui.vm.opt.xmx=768 app.system.conf.language |
RunOBC.bat (Updated): |
… SET JAVA_HOME=%OBC_HOME%\jvm SET JAVA_EXE=%JAVA_HOME%\bin\java.exe SET JAVA_OPTS=-Xms32m -Xmx768m -Dsun.java2d.noddraw … |
RunBackupSet.bat | (updated):
… LIB_HOME=./bin JAVA_OPTS="-Xmx768m -Djava.library.path=$APP_HOME/bin" CLASSPATH=$LIB_HOME:$LIB_HOME/obm.jar:$LIB_HOME/obm-lib.jar MAIN_CLASS=RunBackupSet … |
Once done, please restart the Online Backup Scheduler service.