Skip to content

Commit 2316bcc

Browse files
committed
Increase Surefire heap size to 4GB in default and coverage profiles
1 parent a7e4327 commit 2316bcc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
</activation>
257257
<build>
258258
<plugins>
259-
<!-- Configure the maven-surefire-plugin to use a heap size of 2gb while running tests. -->
259+
<!-- Configure the maven-surefire-plugin to use a heap size of 4gb while running tests. -->
260260
<!-- forkCount=1 with reuseForks=true runs tests in a single forked JVM; -->
261261
<!-- without this, argLine (and therefore -Xmx) would be ignored because -->
262262
<!-- tests would share Maven's own JVM (whose heap defaults are smaller and -->
@@ -269,7 +269,7 @@
269269
<configuration>
270270
<forkCount>1</forkCount>
271271
<reuseForks>true</reuseForks>
272-
<argLine>-Xmx2g -da -Dimagej.legacy.disable=true</argLine>
272+
<argLine>-Xmx4g -da -Dimagej.legacy.disable=true</argLine>
273273
</configuration>
274274
</plugin>
275275
</plugins>
@@ -279,7 +279,7 @@
279279
<id>coverage</id>
280280
<build>
281281
<plugins>
282-
<!-- Configure the maven-surefire-plugin to use a heap size of 2gb while running tests for jacoco coverage analysis. -->
282+
<!-- Configure the maven-surefire-plugin to use a heap size of 4gb while running tests for jacoco coverage analysis. -->
283283
<!-- forkCount=1 with reuseForks=true keeps the jacoco agent argLine effective -->
284284
<!-- against a forked test JVM rather than Maven's own (see comment in the -->
285285
<!-- default profile above). -->
@@ -291,7 +291,7 @@
291291
<configuration>
292292
<forkCount>1</forkCount>
293293
<reuseForks>true</reuseForks>
294-
<argLine>@{argLine} -Xmx2g -da</argLine>
294+
<argLine>@{argLine} -Xmx4g -da</argLine>
295295
</configuration>
296296
</plugin>
297297
<plugin>

0 commit comments

Comments
 (0)