eclipse-platform / eclipse-platform/eclipse.platform

ever growing DeltaDataTree history (performance, leaked memory)

Offen
#359 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug performance
Vorherrschende Sprache
Java
Sterne
165
Forks
174
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
22

Beschreibung

We observe, that eclipse is getting slower and slower while using it. After restarting it's faster.
We now have an example where the heapdump shows 39_483 org.eclipse.core.internal.dtree.DeltaDataTree/org.eclipse.core.internal.watson.ElementTree for only 956 org.eclipse.core.internal.resources.Project.
see https://github.com/eclipse-pde/eclipse.pde/issues/510#issuecomment-1472080130
i.e. a Tree with depth of 39483 / a history of such many changes in workspace.
My understanding is that the depth should be at most equal to the number of Projects build, because after Autobuild of each project the current state of the project should advance to the current workspace state and old states should be cleaned up.

The heapdump shows also that many ElementTree are hold by the builders in org.eclipse.core.internal.events.InternalBuilder.oldState

My first guess what happens is that only a subset of projects are changed. Then autobuild skips unchanged projects. Then the skipped projects keep their ancient state. Then all intermediate workspace states may stay in memory.

I currently don't have the time for further investigation :-(

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit den Heap-Dump-Hinweisen zu org.eclipse.core.internal.dtree.DeltaDataTree, ElementTree und org.eclipse.core.internal.events.InternalBuilder.oldState. Verfolgen Sie, wie der Autobuild unveränderte Projekte behandelt und Workspace-Zustände beibehält; als abgeschlossen gilt die Identifizierung des Aufbewahrungspfads und die Definition einer verifizierten Korrektur, die eine unbeschränkte DeltaDataTree-Historie verhindert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system, performance
Issue-Typ
Bug
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.