summaryrefslogtreecommitdiffstats
path: root/integration-test
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-01-29 14:28:06 +0000
committerDaniel Hanrahan <daniel.hanrahan@est.tech>2024-02-01 13:07:56 +0000
commit7a35d9243774715c93b7d7dc53ff80333b3855f6 (patch)
tree53075fefc80db63bfb66018924da86abd86117ce /integration-test
parent0f6f416f45d5ad0e9bba67d459858995196f7a73 (diff)
Limit heap size in Groovy integration tests
Configure maven to limit heap size in integration tests to help detect OutOfMemory errors in groovy tests. The figure 512MB was chosen as this is 25% of 2GB (JVM by default uses 25% of total memory for heap). Issue-ID: CPS-2052 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ie1160f85ba3970e4c43fccee41c2821dc83a8e53
Diffstat (limited to 'integration-test')
-rw-r--r--integration-test/pom.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/integration-test/pom.xml b/integration-test/pom.xml
index f03b1c63e3..3ac0964180 100644
--- a/integration-test/pom.xml
+++ b/integration-test/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
============LICENSE_START=======================================================
- Copyright (c) 2023 Nordix Foundation
+ Copyright (c) 2023-2024 Nordix Foundation
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -90,6 +90,25 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <argLine>-Xms512m -Xmx512m</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>-Xms512m -Xmx512m</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<profiles>
<profile>
<id>default</id>