Skip to content

Commit

Permalink
Adjust memory in native build
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Feb 4, 2024
1 parent eea7221 commit 1251d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ jobs:
env:
CI: true
SBT_OPTS: >
-Xms1024m
-Xmx1024m
-Xms512m
-Xmx2048m
-XX:+AlwaysPreTouch
-XX:ReservedCodeCacheSize=192M
-Xss2m
Expand Down
2 changes: 1 addition & 1 deletion backend/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1251d8f

Please sign in to comment.