Improve getNumberOfLicensedUsers so that it does not need to fetch every user in order to count the number of licensed users.

XMLWordPrintable

      Currently a number of users using LDAP or crowd are getting

      2010-03-25 07:55:29,954 WARN [http-8084-3] [atlassian.confluence.util.ReadOnlyLicenseCalculator] getNumberOfLicensedUsers Licensing calculation took more than 2000 ms
       -- referer: https://HOST/pages/editpage.action?pageId=1769639 | url: /pages/doeditpage.action | userName: userName | action: doeditpage | page: 1769639
      2010-03-25 09:51:43,272 WARN [http-8084-6] [atlassian.confluence.util.ReadOnlyLicenseCalculator] getNumberOfLicensedUsers Licensing calculation took more than 2000 ms
       -- url: /pages/doeditpage.action | page: 6389881 | userName: userName | referer: https://HOST/pages/editpage.action?pageId=6389881 | action: doeditpage
      

      As our getNumberOfLicensedUsers needs to get every user in every group that has can use permission in order to determine the license count.
      This can create a large load on the LDAP server which causes it to slow and hence hit the timeout.

      We should look to improving the logic, so we can count the users more efficiently.

      If we could remove the need to get each user, then we could potentially resolve CONF-18723

            Assignee:
            Matt Ryall
            Reporter:
            Partha
            Votes:
            22 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: