.jvmopts memory options ignored unless they are first in the file #5425
Labels
area/runner-script
issues around sbt-the-bash-script, or bat script
area/windows
Windows-specific issue
Bug
steps
With sbt 1.3.8 Windows setup, use a local .jvmopts such as
-XX:ReservedCodeCacheSize=128m
-Xss2m
-Xmx1536m
-Xms1512m
problem
The jvm launches with the default memory settings instead of those from the file.
expectation
Uses them.
notes
In the
:addDefaultMemory
section, there is afor /F %%g in ("!_JAVA_OPTS!")
, which would work only for the first argument of this space separated string. I had success replacing it with justfor %%g in (!_JAVA_OPTS!)
, but I did not push through the thought about possible spaces or quotes within jvm options. The workaround of putting-Xmx
or-Xms
first is fine, once you know it.The text was updated successfully, but these errors were encountered: