Intelli J IDEA takes forever to update indices

前端 未结 10 1702
走了就别回头了
走了就别回头了 2020-12-12 11:39

Is it normal for Intelli J to take a lot of time (almost 12 hours) to update indices for a project? I just installed Intelli J on my machine and imported a rather large Mave

10条回答
  •  春和景丽
    2020-12-12 12:25

    I guess Idea is more collecting garbage than doing useful work. Use G1 GC instead of the default.

    Help -- Edit Custom VM Options

    -XX:+UseG1GC
    

    instead of

    -XX:+UseConcMarkSweepGC
    

    and of course restart Idea.

    Downside: G1 tries to collect garbage before stopping the process. This is insane, but this is what it does. For a program with 16G of heap, cleaning-up took 27 minutes. So do not configure your Idea to use a 16G heap.

提交回复
热议问题