Use JAVA_OPTS for setting with environment variable.
Use -J-X options to sbt for individual options, e.g. -J-Xmx2048 -J-XX:MaxPermSize=512
Newer versions of sbt have a "-mem" option.
Read full article from scala - How to specify JVM maximum heap size "-Xmx" for running an application with "run" action in SBT? - Stack Overflow
No comments:
Post a Comment