SBT runs out of memory

前端 未结 1 1585
醉酒成梦
醉酒成梦 2020-12-20 17:08

I am using SBT 0.12.3 to test some code and often I get this error message while testing interactively with the ~test command.

8. Waiting for so         


        
1条回答
  •  囚心锁ツ
    2020-12-20 17:10

    If you haven't, try giving more PermGen space in your sbt.bat. I don't run sbt on Windows, but I give java -Xmx1512M -XX:MaxPermSize=512M. Another thing to try may be to fork during testing: http://www.scala-sbt.org/release/docs/Detailed-Topics/Testing#forking-tests

    In version 0.12.0, the facility to run tests in a separate JVM was added. The setting

    fork in Test := true
    

    specifies that all tests will be executed in a single external JVM.

    0 讨论(0)
提交回复
热议问题