Memory Leak issue in GEF Module [message #1818758] |
Fri, 27 December 2019 06:06  |
Eclipse User |
|
|
|
Hi All,
I am facing following issue.
I have an product which is based out of eclipse. I am using GEF 5.1.0 for few features.
I am observing that, even after javaFx application is closed, memory for the view components is not released by JVM. And on subsequenet operations, memory piles up.
Please help me how to go about fixing this.
Thanks and Regards,
Giri
|
|
|
|
|
Re: Memory Leak issue in GEF Module [message #1822390 is a reply to message #1821944] |
Thu, 05 March 2020 07:59   |
Eclipse User |
|
|
|
Hi Girijanandan,
the keys in this map are weakened. Therefore, entries should be removed when they get garbage collected.
Since there is still a visual registered in visual-part-map, the viewer does not seem to be properly disposed. Disposal sets the adaptable-property of all adapters (that are adaptable-bound) to null. As soon as a part (adaptable-bound) loses its viewer (adaptable), it will unregister from its old viewer.
Therefore, I believe there should be some underlying issue preventing disposal, or an error w.r.t. unregistration, or something else.
I know it is hard, but I believe you need to dig deeper.
Some things to try:
1) When closing the visualisation, ensure that contents are cleared and viewer is disposed. Investigate state of visual-part-map, content-part-map, and viewer models (e.g. selection model). You should hopefully know more after doing this.
2) In a memory snapshot, try to follow reference chains to find root causes preventing garbage collection. Candidates for this are registered event handlers referencing model data (or a chain leading to model data).
If you have more insights to share, please do!
Best regards,
Matthias
|
|
|
|
Powered by
FUDForum. Page generated in 0.02956 seconds