I have a Scala Play Framework web-application (using Scala v2.13.7 and Play v2.8.8) built using SBT (v1.5.5).
My build.sbt
includes the following:
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.settings(
// etc.
fork := true,
javaOptions ++= Seq(
"-Xms1G",
"-Xmx8G",
),
)
However, a separate JVM for the web-application is not spawned when I execute sbt run
, and the memory settings are those of the SBT JVM (-Xms1024m
and -Xmx1024m
).
Does the PlayScala plugin interfere with or disable forking when running the web-application itself? Can I force the web-application to use a forked JVM from within SBT?