Skip to content

Instantly share code, notes, and snippets.

@0xqd
Last active August 14, 2023 12:04
Show Gist options
  • Save 0xqd/419efba9a939d27aaae016c26e56a33c to your computer and use it in GitHub Desktop.
Save 0xqd/419efba9a939d27aaae016c26e56a33c to your computer and use it in GitHub Desktop.
Better performance vmoptions for 2020.1 intellij
-Xms1024m
-Xmx3072m
-Xss64m
-Dfile.encoding=UTF-8
-Djava.net.preferIPv4Stack=true
-Dsun.io.useCanonCaches=false
-XX:+AggressiveOpts
-XX:+AlwaysPreTouch
-XX:+CMSClassUnloadingEnabled
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:+CMSParallelRemarkEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSScavengeBeforeRemark
-XX:+DisableExplicitGC
-XX:+DoEscapeAnalysis
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+OptimizeStringConcat
-XX:+PrintFlagsFinal
-XX:+PrintGCDetails
-XX:+TieredCompilation
-XX:+UnlockDiagnosticVMOptions
-XX:+UnlockExperimentalVMOptions
-XX:+UseAdaptiveGCBoundary
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
-XX:+UseCompressedStrings
-XX:+UseConcMarkSweepGC
-XX:+UseFastAccessorMethods
-XX:+UseParNewGC
-XX:+UseSplitVerifier
-XX:+UseStringCache
-XX:-OmitStackTraceInFastThrow
-XX:-TraceClassUnloading
-XX:CMSInitiatingOccupancyFraction=65
-XX:CompileThreshold=10000
-XX:LargePageSizeInBytes=256m
-XX:MaxNewSize=512m
-XX:MaxPermSize=1024m
-XX:MaxTenuringThreshold=1
-XX:NewRatio=2
-XX:NewSize=512m
-XX:ParallelGCThreads=4
-XX:PermSize=512m
-XX:ReservedCodeCacheSize=512m
-XX:SoftRefLRUPolicyMSPerMB=250
-XX:SurvivorRatio=8
-Xverify:none
-ea
-Xms8192m
-Xmx12288m
-XX:MaxPermSize=4096m
-XX:ReservedCodeCacheSize=1000m
-XX:+UseCompressedOops
-XX:-HeapDumpOnOutOfMemoryError
-Dfile.encoding=UTF-8
@0xqd
Copy link
Author

0xqd commented Apr 30, 2020

Intellij said in the support that they don't recommend to change anything except the heap size (-Xmx). https://twitter.com/i/status/1255536173419622402

@iuriimattos
Copy link

rhacker if add editor.zero.latency.typing=true in idea.properties (Help > Edit Custom Properties) gain any performance?

@iRynoh
Copy link

iRynoh commented Sep 24, 2020

Hello, any updates on this?

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