Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358726 - EMFBasedPersister - Memory Leak
Summary: EMFBasedPersister - Memory Leak
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 10:15 EDT by Christian Dietrich CLA
Modified: 2017-09-19 17:58 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2011-09-23 10:15:20 EDT
Build Identifier: 2.0.0 2.0.1

Xtext uses EMFBasedPersister to keep the Index during a restart of eclipse.

This leads to following problem:

(1) We have a workspace with 2+ projects
(2) on start EMFBasedPersister loads the index using an xmiresource.
    the reference to the xmireasourse with all its contents is kept through
	ResourceDescriptionsData
(3) starting a clean build on one projects leads to a replacement
    of the corresponding resourcedescriptions in  
	ResourceDescriptionsData.addDescription(URI, IResourceDescription)
(4) but the old ones stay still alive cause there is still a reference
    from the other resourcesecriptions to the xmiresource
(5) => if the project is clean is very very big and the other
    very small then this will lead to a nearly doubling of consumed memory


Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-10-17 16:35:53 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:47:31 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:58:39 EDT
Closing all bugs that were set to RESOLVED before Neon.0