Skip to content

Instantly share code, notes, and snippets.

@kazuki-ma
Created September 7, 2020 01:14
Show Gist options
  • Save kazuki-ma/22b876d41b637a8789c2e3964bf92097 to your computer and use it in GitHub Desktop.
Save kazuki-ma/22b876d41b637a8789c2e3964bf92097 to your computer and use it in GitHub Desktop.
G1GC Idea VMOptions
-Xms128m
-Xmx8192m
-XX:+UseG1GC
-XX:MaxGCPauseMillis=100
-XX:ReservedCodeCacheSize=280m
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-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
@kazuki-ma
Copy link
Author

  • Baseline = PC have 64GB Memory.
  • -XX:+UseG1GC is most important parts.
  • -XX:MaxGCPauseMillis=100 is critical parameter. 100~300 is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment