Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4615

OutOfMemoryError - worker threads retain huge repository cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2, 3.8
    • Component/s: None
    • Labels:
    • Git Revision:
      git-v3.7.1-62-g546da10

      Description

      Midpoint nodes crash with OutOfMemoryError when recompute (or other iterative tasks, not sure) runs. It may happen on larger volumes of identities (sixty thousands in my case) in midpoint repository only.

      Memory dump analysis from one of the incidents shows two worker threads retaining 90% of memory in midpoint.repo.cache.Cache.objects HashMaps. See attached MAT screenshot.

      Please ask for password to the attached memory analyzer html report over private message.

      Not sure how to fix this, repo cache needs explicit invalidation of entries which may be a root cause. My grandma always told me never to implement custom cache solutions with strong references.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arnost.starosta@gmail.com Arnost Starosta
              Reporter:
              arnost.starosta@gmail.com Arnost Starosta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: