Skip to content
Snippets Groups Projects
Commit 17e076de authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Turn on forking in test JVMs to reduce the pressure on perm gen and code

cache sizes due to having 2 instances of the Scala compiler and a bunch
of classloaders.
parent 5d8a71c4
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ object SparkBuild extends Build {
transitiveClassifiers in Scope.GlobalScope := Seq("sources"),
testListeners <<= target.map(t => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath))),
// Fork new JVMs for tests and set Java options for those
fork := true,
javaOptions += "-Xmx1g",
// Only allow one test at a time, even across projects, since they run in the same JVM
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment