You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mickael Istria (Jira)" <ji...@apache.org> on 2022/04/13 20:33:00 UTC

[jira] [Commented] (SUREFIRE-2072) Surefire retains too much heap in some case, leading to OutOfMemory

    [ https://issues.apache.org/jira/browse/SUREFIRE-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521928#comment-17521928 ] 

Mickael Istria commented on SUREFIRE-2072:
------------------------------------------

In general, caching some kB here and there can be a good idea, however I have the impression that with patch for SUREFIRE-1845, each test will consume 64kB of extra memory even if it actually only has a dozen of characters to cache (as it's the case for JDT tests). So most of the extra memory consumeption causing the OOM isn't even used at all.

> 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.1#820001)