[ 
https://jira.codehaus.org/browse/SUREFIRE-1133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359747#comment-359747
 ] 

Tibor Digana commented on SUREFIRE-1133:
----------------------------------------

Due to this error
java.lang.OutOfMemoryError: PermGen space
the non-standard option should be increased from -XX:MaxPermSize=512m to some 
higher limit unless other processes eat too much memory.

+ Let's kill all *java* processes.
The surefire has a bug that forked process does not exit after crtl-c and 
occupies memory anyway.
I guess this may happen with OOM forked process too.

+ Let's shrink the permgen space
-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled 
-XX:+CMSClassUnloadingEnabled

+ Let's improve performance on x64 OS
-server -XX:+UseCompressedOops

> Surefire Windows Build fails on OOM
> -----------------------------------
>
>                 Key: SUREFIRE-1133
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1133
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin, Maven 
> Surefire Report Plugin
>    Affects Versions: 2.18
>         Environment: https://builds.apache.org/job/maven-surefire-windows
>            Reporter: Tibor Digana
>
> The last build https://builds.apache.org/job/maven-surefire-windows/741 was 
> updated with JVM options:
> -Xmx1024m -Xms256m -XX:MaxPermSize=512m
> Throughout this the build fails with an error:
> java.lang.OutOfMemoryError: PermGen space



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to