CA Spectrum install fails running mibtools.cus
search cancel

CA Spectrum install fails running mibtools.cus

book

Article ID: 31413

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Spectrum install fails running mibtools.cus. The following error is seen in the mibtools.log file:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space 

at java.util.Arrays.copyOfRange(Arrays.java:2694) 

at java.lang.String.<init>(String.java:203) 

at java.lang.StringBuffer.toString(StringBuffer.java:561) 

at com.aprisma.spectrum.app.mib.web.BulkMibCompile.compileMib(BulkMibCompile.java:122) 

at com.aprisma.spectrum.app.mib.web.BulkMibCompile.main(BulkMibCompile.java:338) 

**^G Error during $SPECROOT/MibDatabase/scripts/BulkMibCompile.sh -d $SPECROOT/MibDatabase -skip_search 

Cause

Java out of memory

Resolution

 

Increase the java memory and rerun the BulkMibCompile.sh script to rebuild the mibtools database:

1. Log into the system as the user that owns the Spectrum installation 

2. If on Windows, start a bash shell by running "bash -login"

3. cd to the $SPECROOT/MibDatabase/scripts directory 

4. Edit the BulkMibCompile.sh file. Look for the memory setting of "-Xmx512m" and change it to "-Xmx1024m" 

5. Run the following command to reinitialize the MIB Tools database: 

./BulkMibCompile.sh -uroot -p<PASSWD> -init 

6. Run the following command to rebuild the MIB Tools database: 

./BulkMibCompile.sh -d <path_to_$SPECROOT>/MibDatabase.backup --skip_search 

The above command may take a long time to run.  Please do not close or exit the shell until it has completed.