Skip to content

Commit

Permalink
build: Start with the max memory already
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Nov 28, 2023
1 parent 99c4756 commit 3a85f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ graalvmNative {
jvmArgs.add("-Xlog:gc*")
// 7GB is what is available when using Github-hosted runners:
// https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
jvmArgs.addAll("-Xmx7G")
jvmArgs.addAll("-Xms7G", "-Xmx7G")
} else {
// `gc` is less verbose than `gc*`, and good enough for local builds.
jvmArgs.add("-Xlog:gc")
// 16G is a good chunk of memory, but reducing GC speeds up
// the native image generation.
jvmArgs.addAll("-Xmx16G")
jvmArgs.addAll("-Xms16G", "-Xmx16G")
}
}
}
Expand Down

0 comments on commit 3a85f51

Please sign in to comment.