IDEA 运行报错 Scala Compile Server

报错信息:

Scala Compile Server
            Error occurred during initialization of VM
            Could not reserve enough space for 2097152KB object heap

不影响scala代码运行,但看着不顺眼!

报错原因:

        网上找到许多资料说是内存不够使用

解决办法:

修改之后再运行文件,就不会报错了。