[ https://jira.codehaus.org/browse/SUREFIRE-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=355939#comment-355939 ]
Tibor Digana commented on SUREFIRE-1110: ---------------------------------------- Hi Karl, Andreas I have to use -Xmx768m -XX:MaxPermSize=768m on JDK 7 x64 on my PC. It looks like the resources Karl has described 2G/1G is exhausting memory resources. I tried to make failsafe-plugin in surefire-integration-tests/pom.xml forked without specifying memory options in MAVEN_OPTS, but the build failed on java.lang.OutOfMemoryError: GC Overload Limit Exceeded This has maybe happened due to very low memory limits for heaped and non-heaped memory (I tried -Xmx256m). The JConsole says that these boundaries are on the edge. Why the IT have to run in the main process (see the POM failsafe-plugin in surefire-integration-tests/pom.xml) ? Do you think that removing <forkMode>never</forkMode> and increasing Xmx and MaxPermSize would be acceptable? <argLine>-Xmx512m -XX:MaxPermSize=356m</argLine> I think nowadays with non-forked failsafe-plugin, the argLine should not influence the main process in which the plugin is running. So if we make it forked with memory limits -Xmx768m -XX:MaxPermSize=768m, then the main process would not need memory limit in MAVEN_OPTS on the system. Usually the unit tests run with unspecified Xmx and MaxPermSize. > Document the memory requirements to run unit- and integration tests for a > release test > -------------------------------------------------------------------------------------- > > Key: SUREFIRE-1110 > URL: https://jira.codehaus.org/browse/SUREFIRE-1110 > Project: Maven Surefire > Issue Type: Improvement > Components: documentation > Affects Versions: 2.18 > Reporter: Karl-Heinz Marbaise > Priority: Minor > Fix For: 2.19 > > > It should be documented how to run unit and integration tests for a release > check during the vote. > The following memory requirements are needed: > {{export MAVEN_OPTS="-Xmx2048m -Xms1024m -XX:MaxPermSize=512m > -Djava.awt.headless=true"}}. -- This message was sent by Atlassian JIRA (v6.1.6#6162)