Windowsでは、sbt 0.13.9.2の場合、必要なJAVA_OPTS
jvmオプションに設定する必要があります。
> set JAVA_OPTS=-Xmx1G
> sbt assembly
sbt.bat
スクリプトからそのデフォルト値をロードするconf\sbtconfig.txt
にCFG_OPTS
なく、使用するJAVA_OPTS
一連の場合は代わりに。
からの関連する抜粋sbt.bat
:
rem FIRST we load the config file of extra options.
set FN=%SBT_HOME%\..\conf\sbtconfig.txt
set CFG_OPTS=
FOR /F "tokens=* eol=# usebackq delims=" %%i IN ("%FN%") DO (
set DO_NOT_REUSE_ME=%%i
rem ZOMG (Part #2) WE use !! here to delay the expansion of
rem CFG_OPTS, otherwise it remains "" for this loop.
set CFG_OPTS=!CFG_OPTS! !DO_NOT_REUSE_ME!
)
。。。(スキップ)。。。
rem We use the value of the JAVA_OPTS environment variable if defined, rather than the config.
set _JAVA_OPTS=%JAVA_OPTS%
if "%_JAVA_OPTS%"=="" set _JAVA_OPTS=%CFG_OPTS%
:run
"%_JAVACMD%" %_JAVA_OPTS% %SBT_OPTS% -cp "%SBT_HOME%sbt-launch.jar" xsbt.boot.Boot %*
mem
sbtを開始するときにパラメータを試しましたか?(例sbt -mem2000
)