Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-3202

Creating users causes memory leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.1.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      This is not strictly a memory leak rather missing eviction policy on the realmVersions cache. There was also another issue as clearing caches through admin console would not clear the realmVersion cache.

      The solution was to remove the realmVersion cache. Instead two separate caches are created internally realmRevisions and userRevisions. The realmRevisions cache has an hard-coded maximum entries set to 10K, while the userRevision cache is set to the max entries of the userCache. If the userCache doesn't have an eviction policy set the userRevision cache is set to maximum 100K entries.

        Attachments

          Activity

            People

            Assignee:
            stianst Stian Thorgersen
            Reporter:
            stianst Stian Thorgersen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: