heap - SBT runs out of memory -


i using sbt 0.12.3 test code , error message while testing interactively ~test command.

8. waiting source changes... (press enter interrupt) [info] compiling 1 scala source c:\users\t\scala-projects\scala test\target\s cala-2.10\classes... sbt appears exiting abnormally.   log file session @ c:\users\t\appdata\local\temp\sbt566325905 3150896045.log java.lang.outofmemoryerror: permgen space         @ java.util.concurrent.futuretask$sync.innerget(unknown source)         @ java.util.concurrent.futuretask.get(unknown source)         @ sbt.concurrentrestrictions$$anon$4.take(concurrentrestrictions.scala: 196)         @ sbt.execute.next$1(execute.scala:85)         @ sbt.execute.processall(execute.scala:88)         @ sbt.execute.runkeep(execute.scala:68)         @ sbt.evaluatetask$.run$1(evaluatetask.scala:162)         @ sbt.evaluatetask$.runtask(evaluatetask.scala:177)         @ sbt.aggregation$$anonfun$4.apply(aggregation.scala:46)         @ sbt.aggregation$$anonfun$4.apply(aggregation.scala:44)         @ sbt.evaluatetask$.withstreams(evaluatetask.scala:137)         @ sbt.aggregation$.runtaskswithresult(aggregation.scala:44)         @ sbt.aggregation$.runtasks(aggregation.scala:59)         @ sbt.aggregation$$anonfun$applytasks$1.apply(aggregation.scala:31)         @ sbt.aggregation$$anonfun$applytasks$1.apply(aggregation.scala:30)         @ sbt.command$$anonfun$applyeffect$2$$anonfun$apply$3.apply(command.sca la:62)         @ sbt.command$$anonfun$applyeffect$2$$anonfun$apply$3.apply(command.sca la:62)         @ sbt.command$.process(command.scala:90)         @ sbt.mainloop$$anonfun$next$1$$anonfun$apply$1.apply(mainloop.scala:71 )         @ sbt.mainloop$$anonfun$next$1$$anonfun$apply$1.apply(mainloop.scala:71 )         @ sbt.state$$anon$2.process(state.scala:170)         @ sbt.mainloop$$anonfun$next$1.apply(mainloop.scala:71)         @ sbt.mainloop$$anonfun$next$1.apply(mainloop.scala:71)         @ sbt.errorhandling$.wideconvert(errorhandling.scala:18)         @ sbt.mainloop$.next(mainloop.scala:71)         @ sbt.mainloop$.run(mainloop.scala:64)         @ sbt.mainloop$$anonfun$runwithnewlog$1.apply(mainloop.scala:53)         @ sbt.mainloop$$anonfun$runwithnewlog$1.apply(mainloop.scala:50)         @ sbt.using.apply(using.scala:25)         @ sbt.mainloop$.runwithnewlog(mainloop.scala:50)         @ sbt.mainloop$.runandclearlast(mainloop.scala:33)         @ sbt.mainloop$.runloggedloop(mainloop.scala:17) error during sbt execution: java.lang.outofmemoryerror: permgen space 

the error clear, cloud increase heap size , may stop throwing error, thing shuts down after number(i don't know how many) of test interactions minimal change in code, , if simple increase in heap solve problem or have additional work not run out of memory.

thanks in advance.

if haven't, try giving more permgen space in sbt.bat. don't run sbt on windows, give java -xmx1512m -xx:maxpermsize=512m. thing try may fork during testing: http://www.scala-sbt.org/release/docs/detailed-topics/testing#forking-tests

in version 0.12.0, facility run tests in separate jvm added. setting

fork in test := true 

specifies tests executed in single external jvm.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -