Skip to content

Commit 67a67ff

Browse files
Merge pull request apache#1170 from shapeblue/4.5-rate-limit-testfix
[4.5] rate-limit: increase JVM memory and enable fork mode for unit testsEnables forkmode for surefire plugin and increases memory opts for JVM for rate-limit tests. This tries to fix intermittent Jenkins failures which look like: multipleClientsCanAccessWithoutBlocking(org.apache.cloudstack.ratelimit.ApiRateLimitTest): unable to create new native thread * pr/1170: rate-limit: increase JVM memory and enable fork mode for unit tests Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 parents 0a8e43b + 421bc00 commit 67a67ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/api/rate-limit/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
<groupId>org.apache.maven.plugins</groupId>
3333
<artifactId>maven-surefire-plugin</artifactId>
3434
<configuration>
35-
<argLine>-Xmx1024m</argLine>
35+
<forkMode>always</forkMode>
36+
<argLine>-Xmx2048m -XX:MaxPermSize=1024m</argLine>
3637
<excludes>
3738
<exclude>org/apache/cloudstack/ratelimit/integration/*</exclude>
3839
</excludes>

0 commit comments

Comments
 (0)