Eclipse Memory

Wednesday, 04 May 2011 07:06

Eclipse Memory Configuration

Per default Eclipse starts with a low size of memory. This results in numerous garbage collections which slows the Eclipse IDE. You can adjust the heapsize memory by setting vm parameters on your startup shortcut.

Use the -Xms parameter to set the minimum and -Xmx to set the maximum heapsize. If you have at least 4 GB memory available i recommend to use 1 GB for both so the VM doesn't have to increase maximum heapsize during runtime.

On Windows systems put a shortcut to the eclipse.exe and edit the target with your prefered VM-settings:


path/eclipse/eclipse.exe -vmargs -Xms1000M -Xmx1000M


See here for a full list of command line arguments supported by Eclipse . To track the currently used heap memory and manually trigger the garbage collector to free up memory, go to Preferences -> General and activate Show heap status. Tags: eclipse , memory , garbage , heap , maximum , heapsize

Add comment


Security code
Refresh