I am trying to configure metaspace for SBT
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=256M -Xms2G -Xmx2G"
but when I run sbt -v , I have the following output:
[process_args] java_version = '1.8.0_11' # Executing command line: java -XX:+CMSClassUnloadingEnabled -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=256M -Xms2G -Xmx2G -Xms1024m -Xmx1024m -XX:ReservedCodeCacheSize=128m -XX:MaxMetaspaceSize=256m -jar /usr/local/Cellar/sbt/0.13.7/libexec/sbt-launch.jar
The problem is that my custom value for MaxMetaspaceSize overridden by another value, as shown above in the output.
SBT Version: 0.13.7
Java Version: 1.8
OS: OSX
source share