eclipse-platform / eclipse-platform/eclipse.platform
ever growing DeltaDataTree history (performance, leaked memory)
- Lenguaje dominante
- Java
- Estrellas
- 165
- Forks
- 174
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 22
Descripción
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 :-(
Guía de contribución
Línea de trabajo
Comienza con la evidencia del heap dump relacionada con org.eclipse.core.internal.dtree.DeltaDataTree, ElementTree y org.eclipse.core.internal.events.InternalBuilder.oldState. Rastrea cómo autobuild gestiona los proyectos sin cambios y conserva los estados del workspace; el trabajo estará terminado cuando se haya identificado la ruta de retención y definido una corrección verificada que evite un historial de DeltaDataTree ilimitado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- build-system, performance
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100