Increase JVM max heap size for Eclipse

后端 未结 4 1573
无人共我
无人共我 2020-11-28 08:30

I am trying to increase the max heap size for my Eclipse. I have tried specifying in eclipse.ini or through the command line, but are not working.

My m

4条回答
  •  半阙折子戏
    2020-11-28 08:53

    Try to modify the eclipse.ini so that both Xms and Xmx are of the same value:

    -Xms6000m
    -Xmx6000m
    

    This should force the Eclipse's VM to allocate 6GB of heap right from the beginning.

    But be careful about either using the eclipse.ini or the command-line ./eclipse/eclipse -vmargs .... It should work in both cases but pick one and try to stick with it.

提交回复
热议问题