1 post tagged “eclipse”
I'll admit this post is half "for you" and half "for me" in that I want to have a quick way to find these settings later! ;)
As our project has grown, I've found that the default amount of memory allotted for Eclipse just isn't sufficient.
The solution is to find and edit the eclipse.ini file. It's in the directory where you've installed Eclipse.
My file has these settings:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
-vmargs
-Xms512m
-Xmx1024m
-Djava.net.preferIPv4Stack=true
The bits you care about are the lines that start with -Xms and -Xmx.
-Xms is the minimum amount of memory set aside for Eclipse when it loads.
-Xmx is the maximum amount of memory Eclipse can use while running. It will grow dynamically if you exceed the original amount set by -Xms.
The line with "128m" on it is a complete mystery to me. If you want Eclipse to break, you're welcome to change it. When that joy has abated, set it back to 128m and enjoy!
Notes:
- If you know what that line does, reply to this post!
- My machine has 3g of RAM, so that max size is fine for me. If your machine has less memory, consider setting -Xms to 256 (or even 128) and -Xmx to 512.
