Skip to content

Instantly share code, notes, and snippets.

@richard1122
Created July 12, 2019 06:08
Show Gist options
  • Save richard1122/da9f8bbc80f80caf84bc45301f65dbce to your computer and use it in GitHub Desktop.
Save richard1122/da9f8bbc80f80caf84bc45301f65dbce to your computer and use it in GitHub Desktop.
idea vm options
# custom IntelliJ IDEA VM options
# from https://github.com/adben/config/blob/master/idea64.vmoptions
-ea
-server
-Xms2G
-Xmx4096M
-Xss16m
-XX:MaxMetaspaceSize=2G
-XX:MetaspaceSize=512m
-XX:ConcGCThreads=6
-XX:ParallelGCThreads=6
-XX:NewRatio=3
-XX:ReservedCodeCacheSize=240m
-XX:+AlwaysPreTouch
-XX:+UseConcMarkSweepGC
-XX:+DoEscapeAnalysis
-XX:+TieredCompilation
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+UnlockExperimentalVMOptions
-Djava.net.preferIPv4Stack=true
-Dsun.io.useCanonCaches=false
-XX:LargePageSizeInBytes=256m
-XX:+UseCodeCacheFlushing
-XX:+DisableExplicitGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+PrintGCDetails
-XX:+PrintFlagsFinal
-XX:+AggressiveOpts
-XX:+CMSClassUnloadingEnabled
-XX:CMSInitiatingOccupancyFraction=60
-XX:+CMSParallelRemarkEnabled
-XX:+UseAdaptiveGCBoundary
-XX:CompileThreshold=10000
-XX:+OptimizeStringConcat
-XX:+UnlockDiagnosticVMOptions
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:+UseCompressedOops
-XX:-OmitStackTraceInFastThrow
-Dfile.encoding=UTF-8
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment