Performance Problem when Using LDAPS

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After setting an LDAP Directory Connector to use SSL (secure connection via the ldaps protocol) performance problems arise.

Cause

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

Resolution

To force the JVM to pool the SSL connections, either:

Add the following line to your FISHEYE_INST/system.properties file (create such a file if it doesn't exist):

com.sun.jndi.ldap.connect.pool.protocol=plain ssl
com.sun.jndi.ldap.connect.pool.authentication=none simple DIGEST-MD5

Or:

Add the following variables to FISHEYE_OPTS (see Environment variables):
  • -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 Feb 26, 2016

Was this helpful?

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