ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

NCMSERV cannot allocate resources - "Failed to allocate array"

book

Article ID: 212630

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We are seeing an error on using NCM captures: 

"Failed to allocate array: 34864 x 26538 process memory currently set to: 1820M.  To increase memory adjust value of -Xmx parameter in: $SPECROOT/lib/SDPM/partslist/NCMSERV.idb, 'processd' will need to be restarted after making this change."

We increase the value to 2048M in NCMSERV.idb and bounced ncmserv.exe, but still we are seeing an issue.

Cause

The memory setting for NCM as defined in NCMSERV.idb is too low for the capture request. 

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Resolution

"Failed to allocate array: 34864 x 26538 process memory currently set to: 1820M.  To increase memory adjust value of -Xmx parameter in: $SPECROOT/lib/SDPM/partslist/NCMSERV.idb, 'processd' will need to be restarted after making this change."

NcmService memory allocation defined in NCMSERV.idb is defaulted at 1024M in 10.4.2. For many customers, this value is too low for configure payloads in modern devices. 

You can increase the memory allocation value here, recommended to increase to 4096M allocated to NcmService: 

ARGV;$SPECROOT/bin/JavaApps/bin/ncmservice<CSEXE> -Xms256M -Xmx4096M -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;

 

In Spectrum 10.4.3 installation and higher, the default value allocated to NcmService is 4096M.