Skip to main content



      Home
Home » Modeling » EMF » To fragment an EMF model and partially load the model
To fragment an EMF model and partially load the model [message #1256363] Tue, 25 February 2014 05:51 Go to next message
Eclipse UserFriend
Hi,

EMF models stored in the xmi format are not very scalable. I found that large models during manipulation give out of memory errors.

We have a product build using EMF and the model files are stored in XMI format.
Are there tools available to fragment an EMF model? Also, is it possible to load and unload fragments on demand given that we have to retain the XMI format for the model files?

I would appreciate any pointers in this area.

Thanks,
Balaji

Re: To fragment an EMF model and partially load the model [message #1256382 is a reply to message #1256363] Tue, 25 February 2014 06:16 Go to previous message
Eclipse UserFriend
Balaji,

Comments below.

On 25/02/2014 11:51 AM, Balaji Kadambi wrote:
> Hi,
>
> EMF models stored in the xmi format are not very scalable. I found
> that large models during manipulation give out of memory errors.
How big is the heap? How big is the file? What activity is underway
when the heap is exhausted? You could look at reducing footprint
following the details of
http://ed-merks.blogspot.de/2009/01/emf-ultra-slim-diet.html
>
> We have a product build using EMF and the model files are stored in
> XMI format. Are there tools available to fragment an EMF model?
EMF does support cross resource containment; you have to enabled that in
the GenModel and you have to decide yourself how to decompose instances
across resources.
> Also, is it possible to load and unload fragments on demand
Not automatically. There is Resource.unload, but ironically, that will
increase memory consumption because all objects are converted to proxies
where the proxy URIs take up more space. Also, the object graph
remains intact so any reference to any object in that graph will keep
the whole graph in memory. UML2 gets around this problem by
specializing the resource's unload to decompose the graph, so that only
referenced proxies remain in memory;
> given that we have to retain the XMI format for the model files?
>
> I would appreciate any pointers in this area.
Perhaps CDO is an option; it doesn't store instances as XMI but rather
in a repository.
>
> Thanks,
> Balaji
>
>
Previous Topic:How to check if my object state has changed ?
Next Topic:Loading twice the same xmi file
Goto Forum:
  


Current Time: Wed Jul 23 11:03:32 EDT 2025

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

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

Back to the top