From e19e859977525c2a39aaa928dfdef20e5fab7e3c Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 22 May 2019 14:42:43 +0200 Subject: [PATCH] Tune max heap size for tests This is an attempt to fix crashes observed on the new Jenkins infrastructure running on Kubernetes [1]. Increase it to 512m for - org.eclipse.jgit.ant.test - org.eclipse.jgit.http.test - org.eclipse.jgit.lfs.server.test - org.eclipse.jgit.lfs.test - org.eclipse.jgit.pgm.test Decrease it to 768m for - org.eclipse.jgit.test [1] e.g. https://ci-staging.eclipse.org/jgit/job/stable/job/jgit.gerrit/16074/console Change-Id: Id074ed0f7bcb8a13da649a547342af2a08439d9f Signed-off-by: Matthias Sohn --- org.eclipse.jgit.ant.test/pom.xml | 2 +- org.eclipse.jgit.http.test/pom.xml | 2 +- org.eclipse.jgit.lfs.server.test/BUILD | 2 +- org.eclipse.jgit.lfs.server.test/pom.xml | 2 +- org.eclipse.jgit.lfs.test/pom.xml | 2 +- org.eclipse.jgit.pgm.test/BUILD | 2 +- org.eclipse.jgit.pgm.test/pom.xml | 2 +- org.eclipse.jgit.test/pom.xml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/org.eclipse.jgit.ant.test/pom.xml b/org.eclipse.jgit.ant.test/pom.xml index cdf88e782..0ba52d47c 100644 --- a/org.eclipse.jgit.ant.test/pom.xml +++ b/org.eclipse.jgit.ant.test/pom.xml @@ -105,7 +105,7 @@ maven-surefire-plugin - @{argLine} -Xmx256m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory} + @{argLine} -Xmx512m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory} diff --git a/org.eclipse.jgit.http.test/pom.xml b/org.eclipse.jgit.http.test/pom.xml index 2426cb5b8..df8dc2790 100644 --- a/org.eclipse.jgit.http.test/pom.xml +++ b/org.eclipse.jgit.http.test/pom.xml @@ -139,7 +139,7 @@ maven-surefire-plugin - @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m + @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m **/*Test.java **/*Tests.java diff --git a/org.eclipse.jgit.lfs.server.test/BUILD b/org.eclipse.jgit.lfs.server.test/BUILD index 1341dd601..fb0d6918f 100644 --- a/org.eclipse.jgit.lfs.server.test/BUILD +++ b/org.eclipse.jgit.lfs.server.test/BUILD @@ -32,7 +32,7 @@ junit_tests( exclude = TEST_BASE, ), jvm_flags = [ - "-Xmx256m", + "-Xmx512m", "-Dfile.encoding=UTF-8", ], tags = ["lfs-server"], diff --git a/org.eclipse.jgit.lfs.server.test/pom.xml b/org.eclipse.jgit.lfs.server.test/pom.xml index 41ce5105e..ce1e280f9 100644 --- a/org.eclipse.jgit.lfs.server.test/pom.xml +++ b/org.eclipse.jgit.lfs.server.test/pom.xml @@ -137,7 +137,7 @@ maven-surefire-plugin - @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m + @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m diff --git a/org.eclipse.jgit.lfs.test/pom.xml b/org.eclipse.jgit.lfs.test/pom.xml index 30b73f8db..ef9770893 100644 --- a/org.eclipse.jgit.lfs.test/pom.xml +++ b/org.eclipse.jgit.lfs.test/pom.xml @@ -111,7 +111,7 @@ maven-surefire-plugin - @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m + @{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m diff --git a/org.eclipse.jgit.pgm.test/BUILD b/org.eclipse.jgit.pgm.test/BUILD index 5bedf9ade..f32fa12de 100644 --- a/org.eclipse.jgit.pgm.test/BUILD +++ b/org.eclipse.jgit.pgm.test/BUILD @@ -7,7 +7,7 @@ junit_tests( name = "pgm", srcs = glob(["tst/**/*.java"]), jvm_flags = [ - "-Xmx256m", + "-Xmx512m", "-Dfile.encoding=UTF-8", ], tags = ["pgm"], diff --git a/org.eclipse.jgit.pgm.test/pom.xml b/org.eclipse.jgit.pgm.test/pom.xml index 326c28e65..fcdebdca3 100644 --- a/org.eclipse.jgit.pgm.test/pom.xml +++ b/org.eclipse.jgit.pgm.test/pom.xml @@ -109,7 +109,7 @@ maven-surefire-plugin - @{argLine} -Djava.io.tmpdir=${project.build.directory} + @{argLine} -Xmx512m -Djava.io.tmpdir=${project.build.directory} diff --git a/org.eclipse.jgit.test/pom.xml b/org.eclipse.jgit.test/pom.xml index c0b851396..624875618 100644 --- a/org.eclipse.jgit.test/pom.xml +++ b/org.eclipse.jgit.test/pom.xml @@ -190,7 +190,7 @@ maven-surefire-plugin - @{argLine} -Xmx1024m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory} + @{argLine} -Xmx768m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory} **/*Test.java **/*Tests.java