VMware Smart Assurance NCM: How to increase heap size on ncm-as service & powerup.jnlp file?
search cancel

VMware Smart Assurance NCM: How to increase heap size on ncm-as service & powerup.jnlp file?

book

Article ID: 345107

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - NCM

Resolution

To increase the heap-size on ncm-as process on Application Server, execute the following changes:
1) Execute: source /etc/voyence.conf
2) Take backup of /etc/init.d/ncm-as file for NCM 10.1.6 and below or take backup of $VOYENCE_HOME/bin/service/ncm-as file for NCM 10.1.8 and above.
3) Open ncm-as file:
In CATALINA_OPTS change the -Xms2048m -Xmx4096m values to -Xms4096m -Xmx8192m
4) Execute: service vcmaster restart
Note: Above change will change the heap-size max from default 4GB to 8GB. Make sure the Application Server has 16 GB RAM or more to make above changes.

To increase the heap-size in $VOYENCE_HOME/ncmcore/webapps/voyence/powerup.jnlp file:
1) Change below:
From: initial-heap-size="128m" max-heap-size="512m
To: initial-heap-size="256m" max-heap-size="1024m"
2) Execute: service vcmaster restart
3) On NCM Client machine (where GUI is launched):
- Clear the Java cache (steps available at https://kb.vmware.com/s/article/382108?lang=en_US),
- Download new powerup.jnlp from server by accessing https://<NCM_AS_IP>:8880/voyence/powerup.jnlp and launch GUI.
Note: Above change will set max heap size to 1GB.