Skip to content

Instantly share code, notes, and snippets.

@rgomezcasas
Created April 25, 2018 08:41
Show Gist options
  • Save rgomezcasas/2248dd3f37e710a07212a315a9fb63b6 to your computer and use it in GitHub Desktop.
Save rgomezcasas/2248dd3f37e710a07212a315a9fb63b6 to your computer and use it in GitHub Desktop.
Best vm options configuration for Scala Intellij
-ea
-server
-Xms2048m
-Xmx4096m
-Xss2m
-Xverify:none
-Dawt.useSystemAAFontSettings=lcd
-Dfile.encoding=UTF-8
-Dhidpi=true
-Djava.net.preferIPv4Stack=true
-Dsun.io.useCanonCaches=false
-XX:+CMSClassUnloadingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:+CMSParallelRemarkEnabled
-XX:+DisableExplicitGC
-XX:+DoEscapeAnalysis
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+OptimizeStringConcat
-XX:+PrintFlagsFinal
-XX:+PrintGCDetails
-XX:+UnlockDiagnosticVMOptions
-XX:+UnlockExperimentalVMOptions
-XX:+UseAdaptiveGCBoundary
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:+UseFastAccessorMethods
-XX:+UseSplitVerifier
-XX:+UseStringCache
-XX:-OmitStackTraceInFastThrow
-XX:CMSInitiatingOccupancyFraction=60
-XX:CompileThreshold=10000
-XX:LargePageSizeInBytes=256m
-XX:MaxMetaspaceSize=1G
-XX:MetaspaceSize=512m
-XX:ParallelGCThreads=8
-XX:ReservedCodeCacheSize=2G
-XX:SoftRefLRUPolicyMSPerMB=50
-Dide.no.platform.update=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment