Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15073

Weird issue in security cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Hi XWiki devs,

      We ran into a weird issue on XWiki security cache. Our entire security cache is purged every 4 hours.

      Some background about our setup:
      We retrieve users’ group membership from LDAP
      We set a 4 hour expiration time on the cache(as below) because LDAP records may update at any time.

      <local-cache name="platform.security.authorization.cache">
      <eviction max-entries="50000" strategy="LRU"/>
      <!-- 4 hours -->
      <expiration lifespan="14400000"/>
      </local-cache>

      To our understanding, each cache entry should have its own timer which expires after 4 hours.
      But what we observe from JMX dashboard is that the entire security cache is being purged every 4 hours.

      In the attachments, the Security Cache.png is security cache JMX diagram, the Group Cache.png is our user group which has similar issue but purge irregularly.

      This problem is cause big performance issue in our system. We can’t figure out the root case. Any pointer will be highly appreciated.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            siteng Siteng Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: