Poor performance of People Directory and logins

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

First attempt to load People directory is very slow, while consecutive loads are faster (because Confluence cached the result). Logins are also slow.

Cause

If you have defined your <baseusernamespace> in a high level of the LDAP tree and <usersearchalldepths> property is set to true, this combination is a recipe for slowness in accessing the People directory - at least during the initial search (as you have set the LDAP caching to true).

Resolution

Splitting the <LDAP> entries will create an adverse effect to your performance as noted in Configuring Multiple LDAP Repositories. This is not preferred.

The solution is to implement a better user search filter. If you have an LDAP browser tool, you can test that your filter is correct via the tool (for example in Apache Directory Studio click on the LDAP > New Search menu, then fill in the new value for your filter. You can also tune the LDAP Cache.

For more references on LDAP in our documentation, please have a look at:

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.