Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Resource unload doenst free memory?
Resource unload doenst free memory? [message #430920] Wed, 17 June 2009 17:51 Go to next message
Eclipse UserFriend
Originally posted by: wesendon.in.tum.de

Hi,

I'm working with a big model, which is splitted in several resources.
I've written a cleaner thread, which unloads all unused resources (using
resouce.unload()). Still, all elements are in one big containment tree.
So unloading "proxyfies" these elements. But the problem is, that the
memory footprint doesn't drop? Is unload not ment for these kind of
issues, am I doing something wrong and is there another possibility?

Greetings,
Otto
Re: Resource unload doenst free memory? [message #430921 is a reply to message #430920] Wed, 17 June 2009 18:02 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Otto,

Yes, in this regard EMF currently works as designed although this
knowledge is not too wide-spread. For this reason I blogged about the
internal details some while back. You might find this reading
interesting:
http://thegordian.blogspot.com/2008/11/how-scalable-are-my-m odels.html

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Otto schrieb:
> Hi,
>
> I'm working with a big model, which is splitted in several resources.
> I've written a cleaner thread, which unloads all unused resources (using
> resouce.unload()). Still, all elements are in one big containment tree.
> So unloading "proxyfies" these elements. But the problem is, that the
> memory footprint doesn't drop? Is unload not ment for these kind of
> issues, am I doing something wrong and is there another possibility?
>
> Greetings,
> Otto
>


Re: Resource unload doenst free memory? [message #655213 is a reply to message #430921] Fri, 18 February 2011 16:42 Go to previous message
AJ  is currently offline AJ Friend
Messages: 77
Registered: July 2009
Member
Hi Eike,

Thanks for the link, it is indeed a very interesting reading.

You mention that you have seen EStore implementations which maintain a separate store instance for all objects of a resource. Do you have more details about that approach.

Thanks & best regards!
Previous Topic:(FIXED) no factory method for my generated EObject with containment reference
Next Topic:[EMFCompare] Not working with resources using content types
Goto Forum:
  


Current Time: Fri Mar 29 08:07:34 GMT 2024

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

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

Back to the top