Skip to content

Commit fb95ac7

Browse files
committed
[Fixes for #95] Adjust memory settings for the tests
- reduce the default value to -Xmx1024m - make the value configurable, so that it could be overwritten in the CI jobs Signed-off-by: Krum Tsvetkov <krum.tsvetkov@sap.com>
1 parent 65c85aa commit fb95ac7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parent/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<!-- mat-release-repo-url specifies from which p2 repo the MAT bundles
6666
come, when the build-release profile is used -->
6767
<mat-release-repo-url>http://download.eclipse.org/mat/latest/update-site/</mat-release-repo-url>
68+
<mat-tests-parameters>-Xmx1024m</mat-tests-parameters>
6869
<p2.mirrorsPrefix>/mat/1.16.1/update-site/</p2.mirrorsPrefix>
6970
<p2.statsURI>https://download.eclipse.org/stats/mat</p2.statsURI>
7071
<p2.mirrorsURL>https://www.eclipse.org/downloads/download.php?format=xml&amp;file=${p2.mirrorsPrefix}</p2.mirrorsURL>
@@ -406,7 +407,7 @@
406407
<artifactId>tycho-surefire-plugin</artifactId>
407408
<version>${tycho-version}</version>
408409
<configuration>
409-
<argLine>-ea -Xmx1536m --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED</argLine>
410+
<argLine>-ea ${mat-tests-parameters} --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED</argLine>
410411
<!-- debugging OOM on CI - make the temp files appear in the workspace -->
411412
<!-- <argLine>-ea -Xmx1024m -Djava.io.tmpdir=. -XX:+HeapDumpOnOutOfMemoryError</argLine>-->
412413
<!-- <testFailureIgnore>true</testFailureIgnore> -->

0 commit comments

Comments
 (0)