-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot increase memory for sbt console
#2945
Comments
What operating system are you using? What sbt launcher are you using (for example how did you install it)? |
Mac OS 10.11.6
I installed |
I can't reproduce it: 18:16:36 $ export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT"
18:16:51 $ /usr/local/opt/sbt/bin/sbt -v console
[process_args] java_version = '1.8.0_112'
# Executing command line:
java
-Xmx2G
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:MaxPermSize=2G
-Xss2M
-Duser.timezone=GMT
-jar
/usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
console
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2G; support was removed in 8.0
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/0.13/plugins
[info] Loading project definition from /s/u/project
[info] Set current project to t (in build file:/s/u/)
[info] Starting scala interpreter...
[info]
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
Type in expressions for evaluation. Or try :help.
scala> Runtime.getRuntime().maxMemory() / 1000 / 1000
res0: Long = 2077 Could you check by adding |
Interesting, when I use -v, an additional
|
I think you might be using a version of sbt-launcher-package that predates this fix: sbt/sbt-launcher-package#101 |
I ran
Many thanks!! |
Cool! :) |
steps
Try to set memory using http://stackoverflow.com/a/15281562/1586965
Run
sbt console
Runtime
shows sbt does not respect my settingsproblem
I get 1G
expectation
I get 2G
notes
Really? 2017? :P
The text was updated successfully, but these errors were encountered: