Anonymous_User Absent Member.
Absent Member.
283 views

Memory leak with the Java LDAP API

Memory leak with the Java LDAP API
We have noticed a memory usage problem with the Novell LDAP client API -
Java version.

The LDAP client has memory leak; is there any one experencing this problem?

+++++++++
We are using the Novell LDAP Java API for user provisioning. We used
following classes for LDAP connection and operation:
====
com.novell.ldap.connectionpool.PoolManager;
com.novell.ldap.LDAPConnection;
com.novell.ldap.LDAPConstraints;
====

we created an object of PoolManager and are using the calls in The
PoolManager to get LDAPConnection from the connection Pool and Put back the
LDAPConnection to the Connection Pool.
====
getBoundConnection(dn, passwd);
makeConnectionAvailable(LDAPConnection)
====

The LDAPConnection Objects in the connection pool that managed by
PoolManager will be reused during life time of the application.

The issue we found is that the retained memory Size of the Object of
com.novell.ldap.Connection keeps growing with time. In our test case the
growing Rate is 6 MB/hour. Eventually the application will crash when all
the heap memory are exhausted.

Any one seen this problem before?

M




Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.