|Re: To fragment an EMF model and partially load the model [message #1256382 is a reply to message #1256363]
||Tue, 25 February 2014 11:16
| Ed Merks
Registered: July 2009
On 25/02/2014 11:51 AM, Balaji Kadambi wrote:
> 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
> 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
> 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.
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01950 seconds