Self-Solve Knowledge Search

Minimize Maximize
ovjboss can't start and ovjboss.log shows error "Can't create Java Virtual Machi...
Title :
ovjboss can't start and ovjboss.log shows error "Can't create Java Virtual Machine: JNI_CreateJavaVM() returned -6"
Document ID :
KM01569258
Product - Version:
network node manager 9.24 ;
OS :
Updated :
Wed May 20 08:45:34 GMT 2015
Summary :
Ovjboss can't start. In the ovjboss.log the last line shows the following error :- Y:/DE/COMMON/util_libs/src/ovutil/ExecJava.cpp:371 Can't create Java Virtual Machine: JNI_CreateJavaVM() returned -6
Problem

Ovjboss can't start. In the ovjboss.log the last line shows the following error :-

Y:/DE/COMMON/util_libs/src/ovutil/ExecJava.cpp:371 Can't create Java Virtual Machine: JNI_CreateJavaVM() returned -6
What could be causing this issue ?

 

Cause
ovjboss is failing at the very initial startup stage trying to create the Java Virtual Machine (JVM).

Check the JVM memory parameters in the properties file  <NnmDataDir>/shared/nnm/conf/props/ovjboss.jvmargs.

eg.
#
# JVM Memory parameters
# -Xms: Initial Java Heap Size
# -Xmx: Maximum Java Heap Size
# -Xss: Java stack size (default to OS-supplied value)
#
-Xms512m

-Xmx 16384m
The issue is the space being put in between the Xmx and the value.
 
Fix
Change the JVM memory parameters in the properties file, ovjboss.jvmargs, to remove the space.
eg.
 
#
# JVM Memory parameters
# -Xms: Initial Java Heap Size
# -Xmx: Maximum Java Heap Size
# -Xss: Java stack size (default to OS-supplied value)
#
-Xms512m
-Xmx16384m