Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » memory leak with middleweight metamodel extension
memory leak with middleweight metamodel extension [message #507113] Tue, 12 January 2010 08:55
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 161
Registered: July 2009
Senior Member
I have a "middleweight" metamodel extension to the UML metamodel.

I noticed that when I use some of the metaclasses defined in this metamodel in my UML' models, I end up with memory leaks.

Using Sun's JDK VisualVM tool, I traced it to the fact that that instances of my meta classes remain referred to by instances of UML2 metaclasses.

For instance, I have a subclass of ValueSpecification that I use as the specification of a constraint. When I use it, instances of my custom ValueSpecification metaclass stay behind even after I unload all model resources in the resource set. If I use only UML2 standard metaclasses, unloading resources properly cleans up all metaclass instances from memory.

Any clues, really appreciated.



[Updated on: Tue, 12 January 2010 18:37]

Report message to a moderator

Previous Topic:encode UMLModel
Next Topic:memory leak with heavyweight metamodel extension
Goto Forum:

Current Time: Fri Sep 21 17:14:35 GMT 2018

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

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

Back to the top