My Oracle Support Banner

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 FEBRUARY 11, 2019

Applies to:

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

Symptoms

On : 11g OID LDAP Server up to 11.1.1.7.0 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: <HOSTNAME>] [pid: 31686] [tid: 10] [ecid: <ECID#>,0] ServerWorker (REG):[[
BEGIN
ConnID:3 mesgID:2 OpID:1 OpName:search ConnIP:::ffff:192.0.2.5 ConnDN:cn=orcladmin
INFO :gslfseADoSearch BASE = cn=AD_Chain,cn=users,dc=<COMPANY>,dc=com FILTER = (objectclass=*) #REQDATTR = 1 SCOPE = 2 REQDATTRS = dn
 TIMELIMIT = 0 SIZELIMIT = 0 DEREF = 0
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
END
]]


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

Changes

 Set new value for orclJVMOptions

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

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.