Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19848

Improve LDAP directory performance when using cache

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 9.3
    • Component/s: Directory

      Description

      LDAP directory sessions initialize a DirContext for every session even though a cache may exist. This makes the session creation much more costly than needed for the case where we only read entries from the cache then close the session. It's especially bad in concurrent situations because internally DirContext creation takes various locks.

      This should be fixed by pushing down lazy DirContext creation into LDAPSession.getContext and always use getContext instead of the dirContext field.

      Stack trace of 6.0 call graph below.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h