[TEST] only use perm gen space on java 1.7.x

This commit is contained in:
Simon Willnauer 2015-03-24 10:04:06 +01:00
parent c017a400d5
commit c87e1b41a4
1 changed files with 19 additions and 3 deletions

22
pom.xml
View File

@ -502,7 +502,7 @@
<jvmArgs>
<param>-Xmx${tests.heap.size}</param>
<param>-Xms${tests.heap.size}</param>
<param>-XX:MaxPermSize=128m</param>
<param>${java.permGenSpace}</param>
<param>-XX:MaxDirectMemorySize=512m</param>
<param>-Des.logger.prefix=</param>
<param>-XX:+HeapDumpOnOutOfMemoryError</param>
@ -581,6 +581,22 @@
</target>
</configuration>
</execution>
<execution>
<id>set-permGen</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- if we are on java 1.7.* we set perm gen space since some tests need it otherwise we just inject a dummy value -->
<condition property="java.permGenSpace" value="-XX:MaxPermSize=128m" else="-Dsome.dummy.value=" >
<matches pattern="1\.7\..+$" string="${java.runtime.version}" />
</condition>
</target>
<exportAntProperties>true</exportAntProperties>
</configuration>
</execution>
<execution>
<id>invalid-patterns</id>
<phase>validate</phase>
@ -617,10 +633,10 @@
<phase>generate-test-resources</phase>
<id>create-heapdump-directory</id>
<configuration>
<tasks>
<target>
<echo message="Creating heapdump directory"/>
<mkdir dir="${tests.heapdump.path}"/>
</tasks>
</target>
</configuration>
<goals>
<goal>run</goal>