Skip to content

Commit

Permalink
set surefire jvm mem opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed May 28, 2024
1 parent ebe726f commit 45df9cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on: [ push ]

jobs:
build:
env:
MAVEN_OPTS: "-Xmx12G -Xms4G"
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions choam/src/main/java/com/salesforce/apollo/choam/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public static <T> CompletableFuture<T> retryNesting(Supplier<CompletableFuture<T
CompletableFuture<T> cf = supplier.get();
for (int i = 0; i < maxRetries; i++) {
final var attempt = i;
cf = cf.thenApply(CompletableFuture::completedFuture).exceptionally(__ -> {
log.trace("resubmitting after attempt: {}", attempt + 1);
cf = cf.thenApply(CompletableFuture::completedFuture).exceptionally(e -> {
log.info("resubmitting after attempt: {} exception: {}", attempt + 1, e.toString());
return supplier.get();
}).thenCompose(java.util.function.Function.identity());
}
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@
<configuration>
<forkCount>${forks}</forkCount>
<reuseForks>true</reuseForks>
<argLine>-Xmx10G -Xms4G</argLine>
<argLine>-Djdk.tracePinnedThreads=full</argLine>
</configuration>
</plugin>
Expand Down

0 comments on commit 45df9cf

Please sign in to comment.