It is possible to fix this by setting the javaOptions for forked JVMs
object BuildSettings {
....
val buildSettings = Defaults.defaultSettings ++ Seq(
....
javaOptions += "-Xmx1G"
....
)
}
If you want to be more particular about different processes you can use something like
javaOptions in run +="-Xmx1G"
But I haven't found which value you should pass to in
yet.