Skip to content

Commit 4d0cca9

Browse files
committed
Fight OOM errors in sbt test
1 parent 6feadaa commit 4d0cca9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.sbtopts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-J-Xmx8G
2+
-J-XX:MaxMetaspaceSize=2G
3+
-J-XX:MaxPermSize=2G
4+
-J-XX:+CMSClassUnloadingEnabled

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fork in Test := true
2626
// in Travis with `sudo: false`.
2727
// See https://github.com/sbt/sbt/issues/653
2828
// and https://github.com/travis-ci/travis-ci/issues/3775
29-
javaOptions += "-Xmx1G"
29+
javaOptions += "-Xmx4G"
3030

3131
scalacOptions ++= Seq(
3232
"-encoding", "UTF-8",

0 commit comments

Comments
 (0)