Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26557

LDAP integration can lead to slowness in the Artifactory UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.12.5, 7.27.10
    • Fix Version/s: 7.37.13
    • Component/s: Artifactory, Performance
    • Labels:
      None
    • Location:
      External

      Description

      Problem description:

      Artifactory users with LDAP Realm (LDAP users) may experience slow Artifactory UI performance due to frequent LDAP sync requests.

       

      Steps to reproduce:

      1. Install Artifactory 7.27.10
      2. Configure LDAP integration for Users and Groups
      3. Add the below logger to Artifactory logback.xml:
        <logger name="org.artifactory.security.access.AccessTokenAuthenticationProvider">
          <level value="debug"/>
        </logger>
      4. Log in to the UI using LDAP credentials

       

      What is the observed behavior?

      If 1) the LDAP server is slow OR 2) LDAP search is not optimized OR 3) multiple LDAP users login to the UI concurrently, you may start experiencing slowness when navigating through the UI due to frequent outgoing requests to LDAP. Which actions are slow: Tree Browser actions, switching between tabs, expanding repositories, etc.

       The DEBUG logger we added will print multiple entries like below for users request to the UI:

      2021-11-24 16:38:25,844Z [jfrt ] [DEBUG] [3878841d7e702f41] [okenAuthenticationProvider:112] [http-nio-8081-exec-6] - Triggering LDAP sync for user tuser
      2021-11-24 16:38:25,844Z [jfrt ] [DEBUG] [3878841d7e702f41] [okenAuthenticationProvider:112] [http-nio-8081-exec-7] - Triggering LDAP sync for user tuser
      2021-11-24 16:38:50,635Z [jfrt ] [DEBUG] [19d1b679df0733b ] [okenAuthenticationProvider:112] [http-nio-8081-exec-6] - Triggering LDAP sync for user tuser
      2021-11-24 16:39:16,062Z [jfrt ] [DEBUG] [2246fb37d4eb1d51] [okenAuthenticationProvider:112] [http-nio-8081-exec-8] - Triggering LDAP sync for user tuser
      2021-11-24 16:39:40,973Z [jfrt ] [DEBUG] [b26df54389731df ] [okenAuthenticationProvider:112] [http-nio-8081-exec-9] - Triggering LDAP sync for user tuser
      2021-11-24 16:40:06,096Z [jfrt ] [DEBUG] [63155e890796bf5a] [okenAuthenticationProvider:112] [http-nio-8081-exec-5] - Triggering LDAP sync for user tuser
      2021-11-24 16:40:31,234Z [jfrt ] [DEBUG] [4d0e9e9a9c530804] [okenAuthenticationProvider:112] [http-nio-8081-exec-6] - Triggering LDAP sync for user tuser
      2021-11-24 16:40:56,315Z [jfrt ] [DEBUG] [e89b453d2d662b3 ] [okenAuthenticationProvider:112] [ttp-nio-8081-exec-10] - Triggering LDAP sync for user tuser
      2021-11-24 16:41:21,467Z [jfrt ] [DEBUG] [19ca583c0f736f8d] [okenAuthenticationProvider:112] [http-nio-8081-exec-4] - Triggering LDAP sync for user tuser
      2021-11-24 16:41:46,296Z [jfrt ] [DEBUG] [36dba8a25b17587b] [okenAuthenticationProvider:112] [http-nio-8081-exec-7] - Triggering LDAP sync for user tuser
      2021-11-24 16:42:11,210Z [jfrt ] [DEBUG] [1bc4fe21b7e878a0] [okenAuthenticationProvider:112] [http-nio-8081-exec-8] - Triggering LDAP sync for user tuser

       

      What is the expected behavior?

      The UI should respond fast.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              valeriyp Valeriy Petrov
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26567 -
                  SYNCHRONIZED
                  • Last Sync Date: