Problem
The NetBackup Web Management Console service throws a Java exception when it runs out of the allocated Java heap space. This article provides the steps for increasing the heap memory for the NetBackup Web Management Console service.
Cause
Initially the NetBackup Web Management Console service is allocated a certain amount of Java heap space. If it runs out of this allocated heap space, "java.lang.OutOfMemoryError: Java heap space" exception is thrown. The NetBackup Web Management Console service cannot allocate an object in the Java heap in such scenarios.
Solution
To fix the issue, Increase the amount of heap memory that the NetBackup Web Management Console service is allowed to use. The parameter which needs to be updated are Xms (the minimum size of the heap) and Xmx (the maximum size of the heap). The amount of memory to allocate will depend on your NetBackup server configuration and the number of jobs running on the system. One of the ways to determine the values for Xms and Xmx could be to update the values in small increments, until you no longer see the error OutOfMemoryError.
On Windows NetBackup master server machines:
- Open the file
<install_path>\wmc\bin\nbwmcservice.xmlusing a text editor. - Update
-Xmsand-Xmxvalues. Example: if initial value are-Xms1536mand-Xmx1536mand you want to increase the heap space by 512 MB, then change the values to-Xms2048mand-Xmx2048mrespectively. - Restart the NetBackup Web Management Console service.
On UNIX NetBackup master server machines:
- Open the file
<install_path>/bin/nbwmcusing a text editor. - Update
-Xmsand-Xmxvalues. Example: if initial value are-Xms1536mand-Xmx1536mand you want to increase the heap space by 512 MB, then change the values to-Xms2048mand-Xmx2048mrespectively. - Restart the NetBackup Web Management Console service.