From 1251d8f38ca0b7c046ac1bb9ee29fb99777236c6 Mon Sep 17 00:00:00 2001 From: Daniel Slapman Date: Sun, 4 Feb 2024 10:21:57 +0100 Subject: [PATCH] Adjust memory in native build --- .github/workflows/ci.yml | 4 ++-- backend/build.sbt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 531f532b..e0c2a659 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,8 +176,8 @@ jobs: env: CI: true SBT_OPTS: > - -Xms1024m - -Xmx1024m + -Xms512m + -Xmx2048m -XX:+AlwaysPreTouch -XX:ReservedCodeCacheSize=192M -Xss2m diff --git a/backend/build.sbt b/backend/build.sbt index 0073aac9..9dc0a702 100644 --- a/backend/build.sbt +++ b/backend/build.sbt @@ -143,7 +143,7 @@ lazy val `mockingbird-native` = (project in file("mockingbird-native")) Compile / packageDoc / mappings := Seq(), GraalVMNativeImage / mainClass := Some("ru.tinkoff.tcb.mockingbird.Mockingbird"), GraalVMNativeImage / graalVMNativeImageOptions ++= Seq( - "-J-Xmx5632m", // Required to fit native-image runtime heap in Standard GitHub-hosted runners + "-J-Xmx6144m", // Required to fit native-image runtime heap in Standard GitHub-hosted runners "-H:+StaticExecutableWithDynamicLibC", "--gc=G1" ).filter(_ => dockerize.value),