Bug 361523 - Memory leaks in UML2Writer
Summary: Memory leaks in UML2Writer
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M3   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2011-10-20 07:40 EDT by Tatiana Fesenko CLA
Modified: 2013-02-21 08:11 EST (History)
2 users (show)

See Also:
karsten.thoms: juno+


Attachments
A sample project demonstrating this issue. (15.70 KB, application/zip)
2011-10-20 07:40 EDT, Tatiana Fesenko CLA
no flags Details
Proposed patch (1.31 KB, patch)
2011-10-20 07:43 EDT, Tatiana Fesenko CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2011-10-20 07:40:30 EDT
Created attachment 205608 [details]
A sample project demonstrating this issue.

Create a transformation that creates a UML model. Add reference to another model, e.g. PackageImport of UML Primitive Types library. "java.lang.OutOfMemoryError: Java heap space" will occur after some 100 iterations.

The problem is that UML2Writer doesn't unload the resources after saving them in a file. That's why CacheAdapter.InverseCrossReferencer keeps the objects that are not in use any longer.
Comment 1 Tatiana Fesenko CLA 2011-10-20 07:43:18 EDT
Created attachment 205609 [details]
Proposed patch
Comment 2 Karsten Thoms CLA 2011-10-20 09:24:27 EDT
Patch is OK. Thanks!
Comment 3 Karsten Thoms CLA 2013-02-21 08:11:53 EST
Bug resolved before Xpand 1.2 release date => Closing