eclipse-platform / eclipse-platform/eclipse.platform

ever growing DeltaDataTree history (performance, leaked memory)

オープン
#359 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug performance
主要言語
Java
スター
165
フォーク
174
平均マージ
2日 8時間
マージ済み PR(30日)
22

説明

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 :-(

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

org.eclipse.core.internal.dtree.DeltaDataTree、ElementTree、org.eclipse.core.internal.events.InternalBuilder.oldState 周辺の heap dump の証拠から始めます。autobuild が変更されていないプロジェクトをどのように処理し、workspace の状態を保持するかを追跡します。完了条件は、保持経路を特定し、DeltaDataTree の履歴が無制限に増加するのを防ぐ検証済みの修正を定義することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system, performance
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。