|Memory leaks in Sirius? [message #1771830]
||Thu, 31 August 2017 07:57
| mind calm
Registered: July 2017
I use Xtext integrate with Sirius to test my model. I found a serious problem: each time i edit my model in Xtext editor, and triggers Sirius to reload model by saving model in Xtext editor, the total memory of my eclipse will be increased.
I use MAT (Memory Analyzer) to analyse the process, and it report 3 Suspects:
Problem Suspect 1:
One instance of "org.eclipse.core.commands.operations.DefaultOperationHistory" loaded by "org.eclipse.core.commands" occupies 65,834,888 (11.91%) bytes. The memory is accumulated in one instance of "org.eclipse.sirius.diagram.ui.internal.edit.parts.DDiagramEditPart" loaded by "org.eclipse.sirius.diagram.ui".
Problem Suspect 2:
One instance of "org.eclipse.emf.workspace.EMFCommandOperation" loaded by "org.eclipse.emf.workspace" occupies 61,916,472 (11.20%) bytes. The memory is accumulated in one instance of "org.eclipse.sirius.diagram.ui.internal.edit.parts.DDiagramEditPart" loaded by "org.eclipse.sirius.diagram.ui".
Problem Suspect 3:
410 instances of "org.eclipse.sirius.diagram.ui.tools.api.figure.SVGWorkspaceImageFigure", loaded by "org.eclipse.sirius.diagram.ui" occupy 243,685,336 (44.10%) bytes.
From suspect 3, i can make sure there must be memory leaks, because i only have 100 elements in my model, there should only have 100 SVGWorkspaceImageFigure instance in memory.
Now the problem is how to fix this issue?
My test enviroment:
Sirius (4.1.3) + Xtext (2.10.0) + Eclipse Neon.3 (4.6.3)
by Keep Mind Calm
Powered by FUDForum
. Page generated in 0.02060 seconds