eclipse_config

I'm working on the beginning stages of getting some integration of our app with Amazon Web Services (AWS). The first step of this is including the AWS Android SDK with our existing Android Eclipse project. However, after doing this I was never able to properly launch our app without Eclipse completely bugging out, locking up, crashing, throwing up tons of error messages... you get the picture.

So I've found a fix for this that all of you are almost definitely going to need. It wouldn't hurt to make these configuration changes now so that you'll be ready for when I do finally make some commits of our then AWS enabled code.

First off, you'll need to find the eclipse.ini file. It's in the root folder of your eclipse directory. So for me, the file was located at C:\eclipse\eclipse.ini. Anyway you need to open it with notepad and make a few simple changes.

Original File

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m

Modified File

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
2048m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms2048m
-Xmx4096m

The values that I changed (all are bolded) correspond to memory allocations. Basically all that I've done is allow Eclipse to consume more of my system's memory than it does by default. Note that those values are what I set for my laptop, which has 8GB of memory. On my desktop (16GB) I allocated a good bit more in each of those sections. If your system has 4GB you're going to want to cut back a little bit from what I have up there.