Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39156

Excessive memory use when invalidating the cache

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.2
    • Fix Version/s: 11.4, 12.0
    • Component/s: Kernel
    • Labels:
      None
    • 11 status:
      Resolved
    • Previous Issue Keys:
      KNL-1498

      Description

      Locally we had an OutOfMemoryException when one of our development servers was syncing it's authz groups. We have a heap dump captured when this happened and looking it appears that there were 2 900MB hashmap (used as a set) holding all the keys to invalidate for the same site.

      This site has 18000 users in it and because we calculate every possible authz lock this resulted in ~ 3.3 million values in each hashmap.

      One map was owned by the thread syncing authz groups and another map was owned by the cluster event tracking code.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  k1team KERNEL TEAM (Inactive)
                  Reporter:
                  buckett Matthew Buckett
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code