From 99723c6bf38799cad3ee5c84edf4684dff490845 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 12 Feb 2020 17:47:32 +0100 Subject: [PATCH] Convert .travis-jvmopts to .sbtopts 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 484b320f8ef07b8691449a1a4abe2c939b2fd782) --- .sbtopts | 6 ++++++ .travis-jvmopts | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 .sbtopts delete mode 100644 .travis-jvmopts diff --git a/.sbtopts b/.sbtopts new file mode 100644 index 00000000000..0230d251d3c --- /dev/null +++ b/.sbtopts @@ -0,0 +1,6 @@ +-J-Xms2G +-J-Xmx2G +-J-Xss2M +-J-XX:MaxInlineLevel=18 +-J-XX:MaxMetaspaceSize=1G +-J-Dfile.encoding=UTF-8 diff --git a/.travis-jvmopts b/.travis-jvmopts deleted file mode 100644 index 5d3fd36fec2..00000000000 --- a/.travis-jvmopts +++ /dev/null @@ -1,8 +0,0 @@ -# This is used to configure the sbt instance that Travis launches - --Xms2G --Xmx2G --Xss2M --XX:MaxInlineLevel=18 --XX:MaxMetaspaceSize=1G --Dfile.encoding=UTF-8