Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Resource is not getting Garbage collected
GMF Resource is not getting Garbage collected [message #795488] Fri, 10 February 2012 14:27 Go to next message
Abbas Mohd is currently offline Abbas MohdFriend
Messages: 31
Registered: February 2012
Member
Hi,

I am generating GMF diagram programatically.
I am creating the gmf Resouce file using OffscreenEditPartFactory.
I am not opening/closing the diagram file at any point of time during my diagram generation.I tested whether load methods from ResourceImpl/XMLResourceImpl is getting loaded anywhere but they are not getting called.

I am making the reference of the resource to null so that it can be garbage collected.

But when i profiled using JProfiler i am seeing the GMF Resource Object in my Memory.
see the screenshot.

Is it related to cache?
Can some one help in knowing what is the issue and how can i dispose it.

Re: GMF Resource is not getting Garbage collected [message #814894 is a reply to message #795488] Wed, 07 March 2012 01:25 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

this question reminds me another but I don't find where I already answer it.

So, try to use another Shell for your OffScreenEditPart and then dispose it.

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Change diagram's background color
Next Topic:Saving / Loading models to /from the DB
Goto Forum:
  


Current Time: Thu Apr 25 02:27:28 GMT 2024

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

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

Back to the top