LDAP connection closure issue when building LDAP connections using javax.naming.ldap.InitialLdapContext

Solution Verified - Updated -

Issue

  • LDAP connection closure issue when building LDAP connections using javax.naming.ldap.InitialLdapContext
  • In Our application is deployed onto JBoss EAP, we build LDAP connection using java class: javax.naming.ldap.InitialLdapContext.After the completion of each LDAP access, we closed those connections. But if we monitor server, we found there are over 1000 LDAP concurrent active connection processes. That would exceed LDAP server acceptable connection limitation. Since these connections were closed from Application, there is any approach/configuration on JBoss side to drop/Garbage Collect these kind of closed LDAP connections ASAP?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content