Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Memory leak - Graphical shapes
icon5.gif  Memory leak - Graphical shapes [message #540519] Wed, 16 June 2010 12:49 Go to next message
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
Member
Hello guys.

I've been working on an application for several months. It now has its own automatic layout to adjust the position of the nodes in the Diagram.

The problem is that as the time goes by and I manage to create bigger and bigger diagrams, the efficiency of my application diminishes proportionally to the diagram size. Using some profiling tools I've seen that memory management is not being done correctly. For example:

I open a Diagram and my profiling tool says that 2.500 Rectangle objects exist in the diagram. I close the editor and still those 2500 objects remain in memory, so that when I open another diagram, all those rectangles sum up with the new ones. So with the use of the applicaiton, it goes slower. It happens the same with connections, EditParts and so on.

I would like to know if someone has faced this problem or has an idea to where the solution is, because I think this is done by the default GMF implementation and I'm not sure where should I touch in the code to solve it.

Thanks in advance Smile
Re: Memory leak - Graphical shapes [message #540520 is a reply to message #540519] Wed, 16 June 2010 12:51 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

we also faced this kind of issue.
The main issue is with undo/redo stack.

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:OCL cannot find feature in link target constraint body
Next Topic:automatically add parent node when child added
Goto Forum:
  


Current Time: Sun Jun 23 17:59:36 GMT 2024

Powered by FUDForum. Page generated in 0.03709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top