Fix: sbt test throw an java.lang.OutOfMemoryError: PermGen space

Author: witgo <witgo@qq.com>

Closes #773 from witgo/sbt_javaOptions and squashes the following commits:

26c7d38 [witgo] Improve sbt configuration
This commit is contained in:
witgo 2014-05-14 11:19:26 -07:00 committed by Reynold Xin
parent 17f3075bc4
commit fde82c1549
2 changed files with 6 additions and 0 deletions

View file

@ -43,3 +43,8 @@ test.out/*
.*iml
service.properties
db.lck
build/*
dist/*
.*out
.*ipr
.*iws

View file

@ -183,6 +183,7 @@ object SparkBuild extends Build {
javaOptions in Test += "-Dspark.testing=1",
javaOptions in Test += "-Dsun.io.serialization.extendedDebugInfo=true",
javaOptions in Test ++= System.getProperties.filter(_._1 startsWith "spark").map { case (k,v) => s"-D$k=$v" }.toSeq,
javaOptions in Test ++= "-Xmx3g -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=1g".split(" ").toSeq,
javaOptions += "-Xmx3g",
// Show full stack trace and duration in test cases.
testOptions in Test += Tests.Argument("-oDF"),