Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Session properties and memory leak
Session properties and memory leak [message #632493] Wed, 13 October 2010 08:01
Cyril Chéné is currently offline Cyril ChénéFriend
Messages: 19
Registered: July 2009
Location: France
Junior Member

My plugin defines a huge model that is stored in a project session properties. From time to time, the model instance is replaced by another instance in the project session properties.

I found that it ended with an OutOfMemoryError...

A little profiling showed me that old instances of my model are kept by two different objects :
- The org.eclipse.core.internal.resources.SaveManager instance through the lastSnap attribute (of type ElementTree). The tree path ends with a DataDeltaNode whose data attribute is a ProjectInfo instance that retains the session properties
- The oldState of my plugin's builder, who is kept by the Workspace instance through its tree attribute (exact path is r.oldState)

I understand that the first is the resource local history. But what is the second?

And can anybody tell me if :
- it is normal to have these Session Properties kept ?
- there is a way to get rid of them ?


PS: I'm using Eclipse 3.2.2, I know it's old, but that's the way it is...
Previous Topic:Alternative location for plugin.xml
Next Topic:Bug? IPartListener no event when moving editor
Goto Forum:

Current Time: Thu Jan 21 12:47:53 GMT 2021

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

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

Back to the top