When copying a project the error ” java.lang.OutOfMemoryError: Java heap space” is raised
During the process of Copying a Project in SilkCentral Test Manager (by going to “SCTM | Administration | Projects | Copy Project”) the following error may be reported in the SilkCentral Frontend Server log file:
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
Caused by: java.lang.OutOfMemoryError: Java heap space
If the error occurs you should first try the following:
1) First increase the Java heap size (which by default is set to 512 Mb) of the Frontend Server process by editing the registry key below:
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\SCCFrontendServer\Parameters\Java\JavaMx
NB. You should stop all of the SilkCentral Test Manager Services before adjusting the Registry, and restart them to apply the changes you have made.
2) Install Hotfix 11 for SCTM 2008 R2 SP1, which contains fixes a number of issues involving the “Copy Project” in SCTM.
If the above two suggestions do not resolve the problem and the error is still being reported during the “Copy Project” process then it is strongly recommended that you upgrade to SCTM 2009 SP1. As this versions of SCTM improves both the project copy performance and the memory consumption significantly after major improvements were added to the “Copy Project” functionality.