Speedup IntelliJ-Idea

前端 未结 12 1800
轮回少年
轮回少年 2020-12-22 15:06

I\'m using intelliJ for Scala development and got 8 GB of new RAM last week, so I thought: time to use it. I checked my task manager and found intelliJ using ~2

12条回答
  •  鱼传尺愫
    2020-12-22 15:33

    I've done some experimenting, and found that to decrease GC pauses the following combination works best: -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50.

    I'd also not make the heap too large, 512 or even smaller is OK for me. Otherwise when it becomes full the GC will have to walk it all which takes some time.

提交回复
热议问题