Skip to content

Commit

Permalink
Convert .travis-jvmopts to .sbtopts
Browse files Browse the repository at this point in the history
Without those, on my machine (both jdk8 and jdk11),
'sbt clean +publishLocal' would run out of memory throwing confusing errors
such as 'java.lang.NoClassDefFoundError: xsbt/DelegatingReporter$PositionImpl$'.
Apparently the JVM heuristics for selecting these values aren't very good yet,
and it would be helpful to supply some reasonable defaults as .sbtopts so new
contributors don't have to deal with this.

(cherry picked from commit 484b320)
  • Loading branch information
raboof authored and mergify-bot committed Apr 10, 2020
1 parent 92cde25 commit 99723c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-J-Xms2G
-J-Xmx2G
-J-Xss2M
-J-XX:MaxInlineLevel=18
-J-XX:MaxMetaspaceSize=1G
-J-Dfile.encoding=UTF-8
8 changes: 0 additions & 8 deletions .travis-jvmopts

This file was deleted.

0 comments on commit 99723c6

Please sign in to comment.