Skip to content

Instantly share code, notes, and snippets.

@Cat7373
Last active March 26, 2020 06:41
Show Gist options
  • Save Cat7373/37b8cc607f49ba462fa7d5d3efb8d715 to your computer and use it in GitHub Desktop.
Save Cat7373/37b8cc607f49ba462fa7d5d3efb8d715 to your computer and use it in GitHub Desktop.
IDEA custom VM args
-Xms128m
# -Xmx1024m
-XX:ReservedCodeCacheSize=240m
# -XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
-Dide.no.platform.update=true
### Custom ###
-Xmx1536m
-Xverify:none
-XX:+UnlockExperimentalVMOptions
# 启用 Graal C2 编译器(实验性)
-XX:+EnableJVMCI
-XX:+UseJVMCICompiler
# G1GC
-XX:+UseG1GC
-XX:MaxGCPauseMillis=100
-XX:TargetSurvivorRatio=80
-XX:+UseStringDeduplication
# -XX:+AggressiveOpts
# -XX:+AlwaysPreTouch
# Code Cache 满时自动清理较旧的缓存
-XX:+UseCodeCacheFlushing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment