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

前端 未结 8 1732
感动是毒
感动是毒 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:56

    I had this issue, played around with it for 10 minutes looking at sites trying to change the memory size.

    Turns out i resolved it by,

    user-profile$ sbt
    

    Then,

    sbt-project-name 0.1> clean
    

    This cleared it up for me.

提交回复
热议问题