+++ This bug was initially created as a clone of Bug #1017111 +++ Platform BZ for https://issues.jboss.org/browse/PLIDM-44 Steps to reproduce: Please see "Steps to Reproduce:" in PLIDM-44
Tom Fonteyne <tfonteyn> made a comment on jira PLIDM-44 It's the line: ldapCtx.unbind(jndiName); which appears twice in that class, that should be removed. An unbind explicitly says to close the connection, instead of simply putting it back in the pool.
Marek Posolda <mposolda> updated the status of jira PLIDM-44 to Resolved
Marek Posolda <mposolda> made a comment on jira PLIDM-44 Fixed by commit https://github.com/picketlink/picketlink-idm/commit/90624614537c560b0df6b296c0c901c932468056
PLIDM upgraded to 1.4.4 in 3.6.x branch.
I just tried with JPP-6.1.1.DR02 and GateIn master and the problem (as described in PLIDM-44 steps to reproduce) is still there. When I configure the server for LDAP and enable the debug option for the LDAP store, I can see tons of errors in log during startup and on user login: ... 17:13:30,464 ERROR [stderr] (http-/127.0.0.1:8080-4) LdapPoolManager: using authmech: simple 17:13:30,464 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Pool@4baec744 {rhds01.mw.lab.eng.bos.redhat.com:389:::null:uid=epp,dc=jboss,dc=com=com.sun.jndi.ldap.pool.ConnectionsRef@433223bd}.get(): rhds01.mw.lab.eng.bos.redhat.com:389:::null:uid=epp,dc=jboss,dc=com 17:13:30,464 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Pool@4baec744 {rhds01.mw.lab.eng.bos.redhat.com:389:::null:uid=epp,dc=jboss,dc=com=com.sun.jndi.ldap.pool.ConnectionsRef@433223bd}.size: 1 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Pool@4baec744 {rhds01.mw.lab.eng.bos.redhat.com:389:::null:uid=epp,dc=jboss,dc=com=com.sun.jndi.ldap.pool.ConnectionsRef@433223bd}.get(): size after: 1 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): before; size: 2 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) ConnectionDesc.tryUse() com.sun.jndi.ldap.LdapClient@167797a9 idle 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): use com.sun.jndi.ldap.LdapClient@167797a9; size: 2 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) Use com.sun.jndi.ldap.LdapClient@167797a9 17:13:30,465 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): after; size: 2 17:13:30,466 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): com.sun.jndi.ldap.LdapClient@167797a9; size: 2 17:13:30,466 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): release com.sun.jndi.ldap.LdapClient@167797a9; size: 2 17:13:30,466 ERROR [stderr] (http-/127.0.0.1:8080-4) Release com.sun.jndi.ldap.LdapClient@167797a9 17:13:30,466 ERROR [stderr] (http-/127.0.0.1:8080-4) ConnectionDesc.release() com.sun.jndi.ldap.LdapClient@167797a9 busy 17:13:30,466 ERROR [stderr] (http-/127.0.0.1:8080-4) com.sun.jndi.ldap.pool.Connections(): notify; size: 2 ...
Sorry, I missed the point of the problem, which was an inappropriate increase in the number of idle LDAP connections. After further testing this issue seems to be fixed.
This issue was marked as a known issue, however the latest comments suggest the issue has been fixed. The Doc Text for release notes needs to be modified, if the issue is to be included in the RHJP 6.1.1 Release Notes. I've had a go at making the Cause and Consequence info, so please check this and add the fix details and the end result, and we should be good to go.
Hi Jared, the issue has been fixed and fix should be available in RHJP 6.1.1. Cheers, Marek