Browse Source

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 <matthias.sohn@sap.com>
stable-5.5
Matthias Sohn 6 years ago
parent
commit
e19e859977
  1. 2
      org.eclipse.jgit.ant.test/pom.xml
  2. 2
      org.eclipse.jgit.http.test/pom.xml
  3. 2
      org.eclipse.jgit.lfs.server.test/BUILD
  4. 2
      org.eclipse.jgit.lfs.server.test/pom.xml
  5. 2
      org.eclipse.jgit.lfs.test/pom.xml
  6. 2
      org.eclipse.jgit.pgm.test/BUILD
  7. 2
      org.eclipse.jgit.pgm.test/pom.xml
  8. 2
      org.eclipse.jgit.test/pom.xml

2
org.eclipse.jgit.ant.test/pom.xml

@ -105,7 +105,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Xmx256m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine> <argLine>@{argLine} -Xmx512m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

2
org.eclipse.jgit.http.test/pom.xml

@ -139,7 +139,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m</argLine> <argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m</argLine>
<includes> <includes>
<include>**/*Test.java</include> <include>**/*Test.java</include>
<include>**/*Tests.java</include> <include>**/*Tests.java</include>

2
org.eclipse.jgit.lfs.server.test/BUILD

@ -32,7 +32,7 @@ junit_tests(
exclude = TEST_BASE, exclude = TEST_BASE,
), ),
jvm_flags = [ jvm_flags = [
"-Xmx256m", "-Xmx512m",
"-Dfile.encoding=UTF-8", "-Dfile.encoding=UTF-8",
], ],
tags = ["lfs-server"], tags = ["lfs-server"],

2
org.eclipse.jgit.lfs.server.test/pom.xml

@ -137,7 +137,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m</argLine> <argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m</argLine>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

2
org.eclipse.jgit.lfs.test/pom.xml

@ -111,7 +111,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx300m</argLine> <argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory} -Xmx512m</argLine>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

2
org.eclipse.jgit.pgm.test/BUILD

@ -7,7 +7,7 @@ junit_tests(
name = "pgm", name = "pgm",
srcs = glob(["tst/**/*.java"]), srcs = glob(["tst/**/*.java"]),
jvm_flags = [ jvm_flags = [
"-Xmx256m", "-Xmx512m",
"-Dfile.encoding=UTF-8", "-Dfile.encoding=UTF-8",
], ],
tags = ["pgm"], tags = ["pgm"],

2
org.eclipse.jgit.pgm.test/pom.xml

@ -109,7 +109,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Djava.io.tmpdir=${project.build.directory}</argLine> <argLine>@{argLine} -Xmx512m -Djava.io.tmpdir=${project.build.directory}</argLine>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

2
org.eclipse.jgit.test/pom.xml

@ -190,7 +190,7 @@
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<configuration> <configuration>
<argLine>@{argLine} -Xmx1024m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine> <argLine>@{argLine} -Xmx768m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine>
<includes> <includes>
<include>**/*Test.java</include> <include>**/*Test.java</include>
<include>**/*Tests.java</include> <include>**/*Tests.java</include>

Loading…
Cancel
Save