[CONTROLLER-1559] Memory leak during bundle tree restart Created: 18/Oct/16 Updated: 25/Jul/23 Resolved: 17/Nov/16 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | blueprint |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Martin Dindoffer | Assignee: | Alexis de Talhouët |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 6969 |
| Description |
|
The references to service providers are not removed from memory on blueprint containers' restart. This produces a memory leak on each bundle tree restart (e.g. initiated by a change in *.cfg configs). |
| Comments |
| Comment by Martin Dindoffer [ 18/Oct/16 ] |
|
Attachment file_6969.txt has been added with description: Example of a provider leak reference chain |
| Comment by Alexis de Talhouët [ 12/Nov/16 ] |
|
Martin, could you try this fix please: https://git.opendaylight.org/gerrit/#/c/48284/ |
| Comment by Martin Dindoffer [ 13/Nov/16 ] |
|
Attachment topoChain.txt has been added with description: Path to the GC roots of a leaked TopoProcessingProviderImpl after a proposed fix |
| Comment by Martin Dindoffer [ 13/Nov/16 ] |
|
@Alexis [0] https://git.opendaylight.org/gerrit/#/c/48283/ (On a side note, I am currently on vacation till early December. So I don't guarantee I will be reachable.) |
| Comment by Alexis de Talhouët [ 14/Nov/16 ] |
|
Thanks Martin for the quick feedback. I understand you might not pick up the fix until early December, thanks for notifying as well. You are correct the fix I provided in topoprocessing is also part of the resolution of this bug, but was unfortunately uncomplete at the time of your testing, now it is. I have identified two root causes for the memory leak: 1. Retention on BlueprintContainer when destroying them before "quiescing"
Obversed behavior with both the changes: Let me know if those fixes are indeed solving your issues. Thanks. |
| Comment by Alexis de Talhouët [ 17/Nov/16 ] |
|
Martin, on the controller side, that bug is now resolved. I've opened a BUG in Topoprocessing to track the memory leak over there: https://bugs.opendaylight.org/show_bug.cgi?id=7197 Thanks, |