Skip to content

Instantly share code, notes, and snippets.

@angeloh
Created July 6, 2012 20:49
Show Gist options
  • Save angeloh/3062666 to your computer and use it in GitHub Desktop.
Save angeloh/3062666 to your computer and use it in GitHub Desktop.
Pass JVM options to sbt
$ cat ~/.sbtconfig
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=128M -XX:MaxPermSize=256M"
@ediweissmann
Copy link

Maybe add $SBT_OPTS at the end so that you can also pass some one-timer ones via export SBT_OPTS

SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=128M -XX:MaxPermSize=256M $SBT_OPTS"

@jiahut
Copy link

jiahut commented Aug 22, 2014

I add this to ~/.profile like below:

export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=128M -XX:MaxPermSize=256M $SBT_OPTS"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment