Mercurial > hg > release > thermostat-0.4
changeset 597:c096b240356c
Set max perm size limit for running tests.
Running tests on a system with <= 1Gb of memory can produce OutOfMemoryErrors
(PermGen region). Setting the max perm gen limit to 300Mb works for me. I've
noticed this when I tried to build thermostat in a VM with 1GB of RAM.
This patch sets the perm size limit and the verifier setting globally and have
hence removed local -XX:-UseSplitVerifier settings.
With this patch applied thermostat builds (including test runs) successfully on
a 1GB VM.
Reviewed-by: rkennke
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003109.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Mon, 10 Sep 2012 15:33:09 +0200 |
parents | e5591cc5bcf7 |
children | 34c478d54c36 |
files | bundles/pom.xml common/core/pom.xml launcher/pom.xml pom.xml |
diffstat | 4 files changed, 1 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/bundles/pom.xml Mon Sep 10 15:11:59 2012 +0200 +++ b/bundles/pom.xml Mon Sep 10 15:33:09 2012 +0200 @@ -113,8 +113,4 @@ </plugin> </plugins> </build> - - <properties> - <argLine>-XX:-UseSplitVerifier</argLine> - </properties> </project>
--- a/common/core/pom.xml Mon Sep 10 15:11:59 2012 +0200 +++ b/common/core/pom.xml Mon Sep 10 15:33:09 2012 +0200 @@ -172,7 +172,4 @@ </dependency> </dependencies> - <properties> - <argLine>-XX:-UseSplitVerifier</argLine> - </properties> </project>
--- a/launcher/pom.xml Mon Sep 10 15:11:59 2012 +0200 +++ b/launcher/pom.xml Mon Sep 10 15:33:09 2012 +0200 @@ -121,7 +121,4 @@ </dependency> </dependencies> - <properties> - <argLine>-XX:-UseSplitVerifier</argLine> - </properties> </project>
--- a/pom.xml Mon Sep 10 15:11:59 2012 +0200 +++ b/pom.xml Mon Sep 10 15:33:09 2012 +0200 @@ -137,6 +137,7 @@ <artifactId>maven-surefire-plugin</artifactId> <version>2.12</version> <configuration> + <argLine>-XX:-UseSplitVerifier -XX:MaxPermSize=300m</argLine> <systemPropertyVariables> <java.awt.headless>false</java.awt.headless> <awt.toolkit>net.java.openjdk.cacio.ctc.CTCToolkit</awt.toolkit>