How to increase the JVM memory allocation for GMS installed on Windows Server?
08/01/2022 5 People found this article helpful 269,805 Views
Description
This process needs to be followed for GMS running on Windows Servers.
For GMS Virtual Appliance, follow the KB: How to increase the RAM allocation to the JVM for each Service
Resolution
Steps to increase RAM allocated to the JVM for the GMS services running on Windows:
1. Navigate to the install drive for GMSVP\bin folder.
In this example, GMS is installed in C: Drive, hence the path will be C:\GMSVP\bin and Press Enter.
We will see a list of batch files for different GMS services running on the server.
List of batch files for GMS services running on Windows:
Service | Windows Batch File Name |
| |
Event Manager | eventd.bat |
Monitor | monitord.bat |
Scheduler | sgmssched.bat |
Reports Summarizer | sgmsvp2.bat |
Reports Scheduler | sgmsvp1.bat |
Syslog Collector | syslogd.bat |
Update Manager | updaterd.bat |
Report Database | mysqld-ib.bat |
NOTE: Take a copy of the batch file before making changes to it.
2. We have increased JVM memory for Report Summarizer Service here. Right click and Edit the sgmsvp2.bat file and look for the following parameter in it:
set JAVA_OPTS=-Xms192m -Xmx256m
3. Change the values to be more suitable for the service utilization. For example, Xms192m would change to Xms512m and -Xmx256m would change to -Xmx2048m and Save the file.
4. After the change, the specific service needs to be uninstalled and re installed.
Steps to perform uninstall and reinstall of the GMS service:
- Open up Command Prompt again and navigate to C:\GMSVP\bin.
- Type the file name then stop to stop the service:
Example: sgmsvp2.bat stop
- Following the file name just add uninstall to uninstall the service
Example: sgmsvp2.bat uninstall
- Following the file name just add install to install the service
Example: sgmsvp2.bat install
- Start the service via the WebGUI or type the file name followed by start to start the service:
Example: sgmsvp2.bat start
After performing these steps, the RAM allocated to the JVM for Report Summarizer Service will be increased. Same steps can be performed for other GMS services as needed.
Related Articles
Categories