[
https://issues.apache.org/jira/browse/SUREFIRE-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17524325#comment-17524325
]
Tibor Digana commented on SUREFIRE-2072:
----------------------------------------
[~mickael.istria]
Regarding our code, TestSetRunListener appears in maven-surefire-common, and it
dependent on Maven API which means that it must be part of the forked JVM,
otherwise it breaks some project strengths.
Haing it in the forked JVM may lead to these issues because the instance of
TestSetRunListener would be one, I guess as in Eclipse Tycho, and the objects
would be reclaimed after the method testSetCompleted() is finished.
> 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.7#820007)