Community
Participate
Working Groups
Build Identifier: The Maven Pom Editor has a huge memory leak. Just opening/closing jboss-as-parent/pom.xml causes the JVM heap to increase in size by 2-10MB which can cause Eclipse to crash (OOM). The leak happens when clicking the Effective POM tab. M2eclipse calls effectivePomSourcePage.setInput(editorInput) every time when clicking this tab. Calling StructuredTextEditor.setInput the second time adds a selection change listener that isn't released which retains the complete MavenPomEditor structure in the heap. The patch changes the contents of the Effective POM page using the IDocument interface. Patch: 0001-M2e-Performance-Pom-Editor-Leak.patch See bug #342903 Reproducible: Always Steps to Reproduce: 1. open some pom.xml file using the Maven Pom Editor 2. click the Effective POM tab If you repeat these steps, you will see that the JVM heap size is continuously increasing.
Created attachment 193452 [details] 0001-M2e-Performance-Pom-Editor-leak
patch applied. Thanks. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=494faeb5bef12457c9de3106d100252a5d844a60
Moved to https://github.com/eclipse-m2e/m2e-core/issues/