Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361523

Summary: Memory leaks in UML2Writer
Product: [Modeling] M2T Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: XpandAssignee: Karsten Thoms <karsten.thoms>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms, sven.efftinge
Version: 1.1.0Keywords: contributed
Target Milestone: M3Flags: karsten.thoms: juno+
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
A sample project demonstrating this issue.
none
Proposed patch sven.efftinge: iplog+

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