OID 11g: Increasing JVM heap Size for Java plugins Fails with: Unrecognized option: -xmx256m | * ERROR * Sgslpvm_getJvmEnv * Creation Of The JVM Failed With Errorcode=-1 (Doc ID 1605939.1)

Last updated on JULY 21, 2017

Applies to:

Oracle Internet Directory - Version to [Release 11g]
Information in this document applies to any platform.


On : 11g OID LDAP Server up to version,

When attempting to increasing the default JVM heap Size for Java plugins (eg. Server Chaining) using DSA Configuration attribute orclJVMOptions
the following error occurs for LDAP searches.

Unrecognized option: -xmx256m
[2013-11-18T02:15:22+00:00] [OID] [TRACE:16] [] [OIDLDAPD] [host: infra.vm.oracle.com] [pid: 31686] [tid: 10] [ecid: 004uqcUnmNWCwk2_vps1yX0007j6000001,0] ServerWorker (REG):[[
ConnID:3 mesgID:2 OpID:1 OpName:search ConnIP:::ffff: ConnDN:cn=orcladmin
INFO :gslfseADoSearch BASE = cn=AD_Chain,cn=users,dc=vm,dc=oracle,dc=com FILTER = (objectclass=*) #REQDATTR = 1 SCOPE = 2 REQDATTRS = dn
2013-11-18T02:15:22 * CLASSPATH = -Djava.class.path=/refresh/home/Middleware/Oracle_IDM1/ldap/jlib/ospf.jar:/refresh/home/Middleware/Oracle_IDM1/jlib/jssl-1_1.jar:.......
2013-11-18T02:15:22 * ERROR * sgslpvm_getJvmEnv * Creation of the JVM failed with errorcode=-1
2013-11-18T02:15:22 * ERROR * gslsbsSearch * Error when executing when_search Java plug-in
2013-11-18T02:15:22 * INFO:gsleswrASndResult OPtime=63439 micro sec RESULT=73 tag=101 nentries=0

Due to this issue, LDAP searches fail with "ldap_search: UnKnown Error Encountered" while trying to initialize the JVM for the Java plugin(s).
The logs show LDAP Error 73 (RESULT=73) - Java plugin failure


 Set new value for orclJVMOptions

$ORACLE_HOME/bin/ldapmodify -p 3060 -D cn=orcladmin -w welcome1 -v <<EOF
dn: cn=dsaconfig,cn=configsets,cn=oracle internet directory
changetype: modify
replace: orcljvmoptions
orcljvmoptions: -Xmx256M


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms