Bridgewater / scala-notebook

Interactive Scala REPL in a browser
Other
742 stars 155 forks source link

PermGen OutOfMemory on clean build #1

Open chrismyang opened 11 years ago

chrismyang commented 11 years ago

From a clean checkout and build, my sbt (with stock configuration) OOM's on PermGen. Not really an SN problem, but logging so that this is a known issue.

Here is a good tutorial on how to increase your perm gen for SBT: http://suhinini.me/2012/07/16/error-during-sbt-execution-java-lang-outofmemoryerror-permgen-space/

And, for completeness, here is the stack trace:

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at sbt.ConcurrentRestrictions$$anon$4.take(ConcurrentRestrictions.scala:195) at sbt.Execute.next$1(Execute.scala:85) at sbt.Execute.processAll(Execute.scala:88) at sbt.Execute.runKeep(Execute.scala:68) at sbt.EvaluateTask$.run$1(EvaluateTask.scala:155) at sbt.EvaluateTask$.runTask(EvaluateTask.scala:170) at sbt.Aggregation$$anonfun$4.apply(Aggregation.scala:46) at sbt.Aggregation$$anonfun$4.apply(Aggregation.scala:44) at sbt.EvaluateTask$.withStreams(EvaluateTask.scala:130) at sbt.Aggregation$.runTasksWithResult(Aggregation.scala:44) at sbt.Aggregation$.runTasks(Aggregation.scala:59) at sbt.Aggregation$$anonfun$applyDynamicTasks$1.apply(Aggregation.scala:105) at sbt.Aggregation$$anonfun$applyDynamicTasks$1.apply(Aggregation.scala:100) at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62) at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62) at sbt.Command$.process(Command.scala:90) at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(MainLoop.scala:71) at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(MainLoop.scala:71) at sbt.State$$anon$2.process(State.scala:170) at sbt.MainLoop$$anonfun$next$1.apply(MainLoop.scala:71) at sbt.MainLoop$$anonfun$next$1.apply(MainLoop.scala:71) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.MainLoop$.next(MainLoop.scala:71) at sbt.MainLoop$.run(MainLoop.scala:64) at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:53) at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:50) at sbt.Using.apply(Using.scala:25) at sbt.MainLoop$.runWithNewLog(MainLoop.scala:50) at sbt.MainLoop$.runAndClearLast(MainLoop.scala:33) at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:17) at sbt.MainLoop$.runLogged(MainLoop.scala:13) at sbt.xMain.run(Main.scala:26) at xsbt.boot.Launch$.run(Launch.scala:55) at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45) at xsbt.boot.Launch$.launch(Launch.scala:69) at xsbt.boot.Launch$.apply(Launch.scala:16) at xsbt.boot.Boot$.runImpl(Boot.scala:31) at xsbt.boot.Boot$.main(Boot.scala:20) at xsbt.boot.Boot.main(Boot.scala)

MasseGuillaume commented 11 years ago

this is my sbt config:

-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:PermSize=256M -XX:MaxPermSize=512M -Xmx712M -Xss2M

it works flawlessly on my macbook air