search cancel

Spectrum NCM crashing when comparing configs with "OutOfMemoryError.java"

book

Article ID: 203396

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Some hprof files have been generated in the NCM folder.  Analysis (via Eclipse Memory Analyser) shows the crash is happening when comparing configuration captures to see differences:

 at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:48)
  at com.aprisma.spectrum.scmd.NCMFileDifference.getDiffResultsImpl

Environment

DX NetOps Spectrum Release : 10.4 or later
Component : Spectrum Core / SpectroSERVER

Resolution

Open the file:

$SPECROOT/lib/SDPM/NCMSERVICE.IDB

Increase the memory setting Xmx in the ARGV line.  Try 4GB first and only increase if the issue continues. For example:

ARGV;$SPECROOT/bin/JavaApps/bin/ncmservice<CSEXE> -Xms256M -Xmx8192M -XX:+HeapDumpOnOutOfMemoryError -Dvbroker.agent.enableLocator=false -Dvbroker.orb.admDir=$SPECROOT/bin/VBNS -Dborland.enterprise.licenseDir=%BES_LIC_DIR% -Dborland.enterprise.licenseDefaultDir=%BES_LIC_DIR% -Djava.endorsed.dirs=$SPECROOT/lib/endorsed -DSPECROOT=%SPECROOT% com.aprisma.spectrum.scmd.ScmService;