[OPENAM-12648] AgentsRepo instances are leaked during realm creation Created: 18/Mar/18 Updated: 01/Aug/19 Resolved: 23/Mar/18
|Fix Version/s:||6.0.0, 14.1.2, 5.5.2|
|Reporter:||Peter Major [X] (Inactive)||Assignee:||Peter Major [X] (Inactive)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Needs QA verification:||
|Are the reproduction steps defined?:||
Yes and I used the same an in the description
As part of the realm creation process new agent related entries are added to the configuration store by the usage of AgentsRepo. The issue is that the AgentsRepo instances are never actually shut down, meaning that these instances never deregister their ServiceConfigManager and ServiceSchemaManager listeners, causing a minor leak.
Create a bunch of realms and see your heap very slowly grow with AgentsRepo instances.
AgentsRepo instances are shut down once they are no longer needed.
They stay around.