How to increase application heap size in Eclipse?

Sophie Sperner picture Sophie Sperner · Mar 9, 2013 · Viewed 164.9k times · Source

Some say I need to do that in Run Configurations for my application. When I open that window, could you please tell me how to set the right argument and the amount of memory? Say how to set 2GB or 1.5GB?

Answer

benzonico picture benzonico · Mar 9, 2013

In the run configuration you want to customize (just click on it) open the tab Arguments and add -Xmx2048min the VM arguments section. You might want to set the -Xms as well (small heap size).