Skip to content

Instantly share code, notes, and snippets.

@svanoort
Created November 3, 2016 17:56
Show Gist options
  • Save svanoort/9d02c20c4b1bcc61ef5ba8f9863e3bf1 to your computer and use it in GitHub Desktop.
Save svanoort/9d02c20c4b1bcc61ef5ba8f9863e3bf1 to your computer and use it in GitHub Desktop.
JVM args for a fast Intellij
# custom IntelliJ IDEA VM options
-server
-Xss16m
-Xms256m
-Xmx1500m
-XX:ReservedCodeCacheSize=240m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+UseCompressedOops
-XX:+UseCompressedClassesPointers
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-ea
# GC tuning
-XX:NewRatio=1
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+UseParNewGC
-XX:ConcGCThreads=4
-XX:+ScavengeBeforeFullGC
-XX:+CMSScavengeBeforeRemark
-XX:+ParallelRefProcEnabled
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSClassUnloadingEnabled
-XX:+CMSParallelRemarkEnabled
# Metaspace caps
-XX:CompressedClassSpaceSize=300m
-XX:MaxMetaspaceFreeRatio=30
-XX:MetaspaceSize=300m
-XX:MinMetaspaceFreeRatio=10
# GC output
-Xloggc:/tmp/intellij-gc-%t.log
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintGCCause
-XX:+PrintTenuringDistribution
-XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy
-XX:+PrintGCTimeStamps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment