Smarts NCM: How to increase the Jboss XMX and XMS values in Windows Server 2008
search cancel

Smarts NCM: How to increase the Jboss XMX and XMS values in Windows Server 2008

book

Article ID: 331168

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


This article explains how to increase or decrease the Jboss XMX and XMS values to improve performance of Smarts NCM in a Microsoft Windows 2008 Server environment.

Out Of Memory errors seen in Smarts NCM logs.

Performance issues seen in Smarts NCM.

Environment

VMware Smart Assurance - NCM

Cause

Smarts NCM environment may show signs that there is a need to increase the Jboss XMX and XMS values to increase performance. These signs may come in the form of errors in the logs such as Out Of Memory.

Resolution

To change the values of the XMX and XMS settings in Windows Server 2008, do the following:

Note: The maximum value for XMS and XMX in Microsoft Windows is 1400M (1.4GB)
  1. In Windows, select Start > Run.
  2. In the Run dialog, enter regedit and click OK to launch the Registry Editor.
  3. Browse to the following location in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NCM_Jboss\Parameters
  1. In the right pane, double click JVM Option Number 2
  1. Change the -Xms1024M value to what you require.
  2. Click OK.
  3. In the right pane, double click JVM Option Number 3
  1. Change the -Xmx1024M value to what you require.
  2. Click OK.
  3. You can now exit the Registry Editor.
  4. Restart NCM services: 
[Product directory]\bin directory\ncmmaster.pl restart

 


Additional Information

The -Xmx argument defines the max memory size that the heap can reach for the JVM. 
 
The -Xms argument sets the initial heap memory size for the JVM. This means that when you start your program the JVM will allocate this amount of memory instantly.