migrateUserstodb.cmd Causes "java.lang.OutOfMemoryError: Java Heap Space" (Doc ID 1901608.1)

Last updated on AUGUST 08, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.2.0 and later
Information in this document applies to any platform.

Symptoms

ACTUAL BEHAVIOR  
---------------
Synchronization of a large number of LDAP users by migrateUserstodb.cmd causes "java.lang.OutOfMemoryError: Java heap space"

Command prompt indicates the following error:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:64)
at java.lang.StringBuilder.<init>(StringBuilder.java:97)
at javax.naming.ldap.Rdn.unescapeValue(Rdn.java:640)
at javax.naming.ldap.Rfc2253Parser.doParse(Rfc2253Parser.java:118)
at javax.naming.ldap.Rfc2253Parser.parseDn(Rfc2253Parser.java:70)
at javax.naming.ldap.LdapName.parse(LdapName.java:789)
at javax.naming.ldap.LdapName.<init>(LdapName.java:125)
at com.sun.jndi.ldap.LdapSearchEnumeration.createItem(LdapSearchEnumeration.java:75)
at com.sun.jndi.ldap.LdapSearchEnumeration.nextAux(LdapSearchEnumeration.java:274)
at com.sun.jndi.ldap.LdapSearchEnumeration.nextImpl(LdapSearchEnumeration.java:254)
at com.sun.jndi.ldap.LdapSearchEnumeration.next(LdapSearchEnumeration.java:202)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:403)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
at com.agile.admin.ldap.DirService.searchByUserFilter(DirService.java:418)
...


EXPECTED BEHAVIOR
-----------------------
Synchronization of a large number of LDAP users by migrateUserstodb.cmd completes without error.


STEPS
-----------------------
1. Run migrateUserstodb.cmd in <Agile_home>\agileDomain\bin
   migrateUserstodb -d <LDAP_ID>
2. "java.lang.OutOfMemoryError: Java heap space" occurs

Cause

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