Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » is org.eclipse.core.internal.dtree.DeltaDataTree leeking memory?
is org.eclipse.core.internal.dtree.DeltaDataTree leeking memory? [message #330663] Thu, 07 August 2008 17:31
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 82
Registered: July 2009
Member
Hi,

I'm using Ganymede right now and noticed that the memory consumption of
my plug-in was growing constantly.
Using the Eclipse Memory Analyzer I found that the class at fault is
org.eclipse.core.internal.dtree.DeltaDataTree (or me doing something wrong).

Basically what I'm doing is just two steps long (done in a loop):
- first I delete a bunch of markers using the IResource#deleteMarkers
function on project level with DEPTH_INFINITE to let it clear all
markers of a type.
- than after some logic I add a lot of markers to several files in the
same project.

This process should not use more memory than actually needed for the
markers (as in the second run of the loop I'm deleting all markers).

Right now I'm a bit puzzled as on the graphical interface the markers
disappear. If I'm searching for the markers with the findMarkers
function it is always finding exactly the same ammount of markers (which
is actually what I expected).
But still the memory consumption continuously grows, with instances of
the DeltaDataTree retaining more and more memory.

Am I doing something wrong, or is this memory leak really existing?

/*
I know it would be more efficient to just modify the markers, but that
is not an option right now.
*/
Previous Topic:Common Navigator Framework: Link with Editor
Next Topic:Writing file to .eclipse (Unix) or Application Data (Win32)
Goto Forum:
  


Current Time: Tue Jul 16 14:04:23 GMT 2024

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

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

Back to the top