[ https://issues.apache.org/jira/browse/SUREFIRE-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615458#comment-17615458 ]
Christoph Läubrich commented on SUREFIRE-2072: ---------------------------------------------- Can someone please explain a bit where exactly this happens? org.apache.maven.plugin.surefire.report.TestSetRunListener has Queue<TestMethodStats> testMethodStats and but I don't see a "cache" org.apache.maven.plugin.surefire.report.StatelessXmlReporter has Map<String, Deque<WrappedReportEntry>> testClassMethodRunHistoryMap and that contains Utf8RecodingDeferredFileOutputStream so is that the culprit as indicated by the original report (see SUREFIRE-1845)? > Surefire retains too much heap in some case, leading to OutOfMemory > ------------------------------------------------------------------- > > Key: SUREFIRE-2072 > URL: https://issues.apache.org/jira/browse/SUREFIRE-2072 > Project: Maven Surefire > Issue Type: Bug > Reporter: Mickael Istria > Priority: Major > > Most likely since SuREFIRE-1845, every test execution can retain 64kB of RAM > (as cache). Which caching is welcome, this cannot scale with some big test > suites of several thousands of tests and cause OutOfMemoryError. > This is the case when running Eclipse JDT dom test suite, since > tycho-surefire-plugin started to adopt surefire 3.0.0.M6, as described in > https://github.com/eclipse/tycho/issues/879#issuecomment-1096454637 -- This message was sent by Atlassian Jira (v8.20.10#820010)