Uploaded image for project: 'WSO2 Identity Server'
  1. WSO2 Identity Server
  2. IDENTITY-5950

Identity Management 'RegistryCleanUpTask' loads all tenants when being executed

    Details

    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes
    • Affects Docs:
      Yes

      Description

      RegistryCleanupTask is by default enabled and while being executed it loads all tenants [1]. When there are massive number of tenants, as caches and other resources are getting initialized this task consumes heap significantly.
      This cleanup service should be improved and designed to be executed without loading tenants aggressively.

      [1] https://github.com/wso2/carbon-identity-framework/blob/v5.2.2/components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/store/RegistryCleanUpService.java#L84

        Attachments

          Activity

            People

            • Assignee:
              isura@wso2.com Isura Karunaratne
              Reporter:
              malithim@wso2.com Malithi Edirisinghe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: