Out of memory in PlayFramework 2.0

前端 未结 3 2146
眼角桃花
眼角桃花 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 08:02

    The Java startup options for play are founder in the script:

    $PLAY_HOME/framework/build

    The PermGen space can be increased by modifying the line at the bottom of the file:

    java ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M ...

    Set the MaxPermSize variable to an appropriate value.

提交回复
热议问题