https://www.reddit.com/r/Jetbrains/comments/1mbbkao/boosting_intellij_performance_my_final_setup/
-Xss1m
-Xmx4G
-XX:SoftRefLRUPolicyMSPerMB=7
-XX:+UseG1GC
-XX:MaxGCPauseMillis=100
-XX:G1HeapRegionSize=16m
-XX:NewRatio=2
-XX:InitiatingHeapOccupancyPercent=66
-Dide.no.platform.update=true
Xss1m: Reduces memory used per thread.
2m, which is fine for Java, but I'm working with Angular + LSP + ESLint + Prettier, so lots of threads = more memory pressure.XX:+UseG1GC: Forces G1GC. This is usually the default, but better to be explicit.XX:MaxGCPauseMillis=100:
200.XX:G1HeapRegionSize=16m:
32m, but I had better results with 16m.Xmx4G: Total heap size (about 1/4 — 1/3 of your total RAM)XX:SoftRefLRUPolicyMSPerMB=7:
Xmx=4G: 30s / 4G → ~7XX:NewRatio=2:
XX:InitiatingHeapOccupancyPercent=66:
NewRatio=2 settingNewRatio=1, set this to 50 insteadDide.no.platform.update=true: