C
Christian Breu
Hello,
I'm getting java.lang.OutOfMemoryError and already tried the various
java -X compiler memory options, but they won't help.
I'm writing thousands of Entries in a LDAP Directory using the
Netscape LDAP API. This is essentially the code:
LDAPSearchResults res;
LDAP Connection iCon;
//Searching...
res = iCon.search("o=gd",
LDAPConnection.SCOPE_SUB,
filter,
null,
false,
iCons );
valueString = ...;
while (res.hasMoreElements()) {
LDAPModificationSet mods = new LDAPModificationSet();
LDAPAttribute attrName = new LDAPAttribute "gFullName",valueString
);
mods.add( LDAPModification.ADD, attrName );
iCon.modify(attrDN, mods );
}
mods = null;
attrName = null;
After 1000-2000 runs it crashes.
Can anybody please help !!!???
I'm getting java.lang.OutOfMemoryError and already tried the various
java -X compiler memory options, but they won't help.
I'm writing thousands of Entries in a LDAP Directory using the
Netscape LDAP API. This is essentially the code:
LDAPSearchResults res;
LDAP Connection iCon;
//Searching...
res = iCon.search("o=gd",
LDAPConnection.SCOPE_SUB,
filter,
null,
false,
iCons );
valueString = ...;
while (res.hasMoreElements()) {
LDAPModificationSet mods = new LDAPModificationSet();
LDAPAttribute attrName = new LDAPAttribute "gFullName",valueString
);
mods.add( LDAPModification.ADD, attrName );
iCon.modify(attrDN, mods );
}
mods = null;
attrName = null;
After 1000-2000 runs it crashes.
Can anybody please help !!!???