How to set heap size for sbt?

前端 未结 10 1174
日久生厌
日久生厌 2020-11-29 17:38

I am using SBT 0.12.0. I have read other answers on stack overflow and followed them, however none of them helps, for example:

  • create ForkRun clas
10条回答
  •  甜味超标
    2020-11-29 18:13

    A quick way to do it is with a .jvmopts file in the root of your project (from the Lagom Framework documentation):

     $ cat .jvmopts
     -Xms512M
     -Xmx4096M
     -Xss2M
     -XX:MaxMetaspaceSize=1024M
    

提交回复
热议问题