Performance problem when using LDAPS

Still need help?

The Atlassian Community is here for you.

Ask the community


After setting an LDAP directory connector to use SSL (Secure Connection), the Crowd instance and/or integrated applications exhibit performance problems.


The default JNDI/LDAP service provider in Java does not pool SSL connections by default, which means every LDAP request must open a new connection to the server (reference).


 To force the JVM to pool SSL connections, add the following line to your Apache Tomcat /bin/ (setenv.bat for Windows) file:

On Linux:

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.jndi.ldap.connect.pool.protocol='plain ssl' -Dcom.sun.jndi.ldap.connect.pool.authentication='none simple DIGEST-MD5'"

On Windows:

JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl" -Dcom.sun.jndi.ldap.connect.pool.authentication="none simple DIGEST-MD5"

If you wish to customize the SSL connection pooling further, please see the full documentation provided by Sun.

Last modified on Apr 4, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.