http://www.kineticklink.com/speeding-up-eclipse-on-os-x-leopard/
) which contols the minimum and maximum size of the heap. If you’re using a OS X based Eclipse you’ll find this file by showing the content of Eclipse.app by right clicking
on the file and selecting show package contents. The file is located in
.
Look for the following lines:
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
and
set the minimum and maximum heap size.
is a bit confusing, but one thing it can affect is Garbage collection. The part of the heap that
defines is where classes and methods are kept and if it fills, it can trigger a full garbage collection. I found some discussion online about what this setting means for memory usage and how different versions of Java apply these settings diffently. Base on my cursory exploration, you can be safe by using this formula to determine the maximum memory Eclipse will use:
This all in mind, I set mine at:
-Xms256m
-Xmx512m
-XX:MaxPermSize=256m