0

I have updated the contents of eclipse.ini to include -Xmx4G instead of -Xmx2G, but re-starting eclipse I still see (hovering over the memory utilization bar copied below) that the maximum heap size is a little less than 2G. Do I need to take a different approach to increasing the heap size used by eclipse?

enter image description here

Hovering the bar, I see: max: 1821M.

matanster
  • 15,072
  • 19
  • 88
  • 167

2 Answers2

0

It only takes setting or updating the value of -Xmx such as to -Xmx4G. But this can be done either in eclipse.ini or in the command used to activate eclipse. The command will override eclipse.ini in this regard, so in case updating eclipse.ini doesn't work, need to examine and modify the command used to launch. In some desktop environments this might require a good memory or some effort to find the launch command. I now renamed the question to better reflect the scenario for future searches.

Community
  • 1
  • 1
matanster
  • 15,072
  • 19
  • 88
  • 167
0

Add following:

-vmargs
-Xmx4G

to the very end of your eclipse.ini

Usual error is to include VM arguments before -vmargs argument in eclipse.ini, or to omit -vmrags altogether.

Basilevs
  • 22,440
  • 15
  • 57
  • 102