Skip to content

Commit 04f194b

Browse files
author
marcpalmer
committed
Expanded permgen to stop chronic full GC problem when running tests, and properly set heap to 512MB for batchtests
git-svn-id: https://svn.codehaus.org/grails/trunk@3982 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent cf64030 commit 04f194b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ant/build/unit-test.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@
9797
<target name="run-test" depends="defineTestingScope, build-test">
9898
<delete dir="${grails.test.reports}" />
9999
<mkdir dir="${grails.test.reports}" />
100-
<junit fork="true" forkmode="once">
100+
<junit fork="true" maxmemory="512m" forkmode="once">
101101
<!-- only fork VMs as needed -->
102102
<jvmarg value="-Xmx512M" />
103+
<jvmarg value="-XX:MaxPermSize=256m"/>
103104
<classpath location="${coverage.build}" />
104105
<!-- must be first in cp! -->
105106
<classpath location="cruise/coverage/lib/cobertura.jar" />

0 commit comments

Comments
 (0)