ovjboss can't start and ovjboss.log shows error "Can't create Java Virtual Machine: JNI_CreateJavaVM() returned -6"

  • KM01569258
  • 13-May-2015
  • 20-May-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

Error

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