Out of memory in PlayFramework 2.0

前端 未结 3 2268
眼角桃花
眼角桃花 2021-02-13 07:14

How do I increase the memory available to the Play environment? I am running out of memory after a time while running tests.

In particular, I get this error:

3条回答
  •  天命终不由人
    2021-02-13 07:47

    I solved this problem by adding:

    javaOptions ++= Seq("-Xmx2048M", "-Xms512M", "-XX:MaxPermSize=2048M")
    

    in Build.scala to the settings.

提交回复
热议问题