How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation?

前端 未结 8 1768
感动是毒
感动是毒 2020-12-02 07:36

I have noticed a strange behavior of my scala compiler. It occasionally throws an OutOfMemoryError when compiling a class. Here\'s the error message:

[info]          


        
8条回答
  •  情书的邮戳
    2020-12-02 07:57

    The cause for OutOfMemoryError: PermGen space is that it doesn't have enough permanent generation space :) If you are using Oracle JVM, you need to add the -XX:MaxPermSize=256M (or some other amount of space) argument to your sbt script. For other JVMs, look at their documentation.

提交回复
热议问题