NetWorker: How to change the java heap size for the NetWorker Management Console (NMC)
Résumé: How to change the java heap size for the NetWorker Management Console (NMC)?
Instructions
The NetWorker Management Console (NMC) uses a Java Runtime on the host accessing the console. The console uses the file gconsole.jnlp, which it downloads from the NMC server. This file defines Java memory limits for the host accessing the NMC. The default memory limit is 2 GB. In some scenarios, you may observe "running out of memory" errors in the NMC, even though the host accessing the NMC still has sufficient memory available. This happens when the NMC is nearing the Java heap limit for the NMC. This is expected behavior when performing some operations in the NMC, particularly in larger environments, or environments with a lot of data.
The Java heap size may be changed from the default NMC value to accommodate various environment configurations.
In the following example, the java heap size is increased on the NMC from 2 GB (-Xmx2048m) to 4 GB (-Xmx4096m) on the NetWorker Management Console Server. The new value applies to any NetWorker Management Console workstations connecting to the NetWorker Management Console Server.
- Open the
gconsole.jnlpfile on the NetWorker Management Console Server.
-
- Default Linux:
/opt/lgtonmc/web/gconsole.jnlp - Default Windows:
C:\Program Files\EMC NetWorker\Management\GST\web\gconsole.jnlp
- Default Linux:
- Change the line for the Java heap memory max size:
-
- Existing:
<j2se version="1.8+" java-vm-args="-XX:+IgnoreUnrecognizedVMOptions --add-modules=java.se.ee -Xms256m -Xmx2048m"/> - Changed:
<j2se version="1.8+" java-vm-args="-XX:+IgnoreUnrecognizedVMOptions --add-modules=java.se.ee -Xms256m -Xmx4096m"/>
- Existing:
- Restart the NMC services.
-
- Linux:
systemctl restart gst - Windows (PowerShell syntax):
net stop gstd ; net start gstd
- Linux:
- From the NMC workstation (host accessing the NMC), clear the Java cache. The following articles apply for NetWorker Runtime Environment (NRE):
-
- NetWorker 19.12.x and prior: NRE 8.x: How to clear Java Cache, enable Java Console and Debugging.
- NetWorker 19.13.x and later: NRE 17.x: How to Clear Java Cache, Enable Java Console, and Debugging
- Launch the NMC.