Skip to content

Commit 75657c3

Browse files
committed
add jvm opts to unset sbt defaults for better support of sbt runner script
1 parent df5af9f commit 75657c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.jvmopts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
-Xmx4G
1+
# sooo hear me out:
2+
# This repo compiles kinda fine with 1GB of memory (the sbt default) sometimes, but most of the time more is required. How much more? Well, the CI seems to run fine with 4GB, but ultimately more is always better™, yet setting this to gigantic values is bad for systems that don’t have that much RAM installed. I’d really prefer to just use the Java default, which uses some portion of the maximum ram, thus scaling to the target machine. It’s very unfortunate, that SBT does not just use that as the default.
3+
# Now, setting *any* of the memory related options for SBT makes it so that none of the SBT built ins are used, so we set the stack size to what seems to be the default most of the time, thus causing -Xmx (and other memory flags) to not be passed to the JVM, thus falling back to the defaults.
4+
-Xss1M

0 commit comments

Comments
 (0)