Eclipse configuration files on Mac OS X

Posted on Tue 19 April 2011 in Eclipse

On Linux or Windows you can find the eclipse.ini file in the eclipse directory.
If you now run out of memory with some bigger projects you need to edit the eclipse.ini file to increase the max amount of memory for you eclipse java process.

1. Open Terminal and go to eclipse directory. My eclipse is located in Application directory.

#cd /Applications/eclipse/

2. Go where eclipse.ini is located. I am using Eclipse Ganymed so it looks like this:

  1. I use vi for changing the file:
#vi eclipse.ini
  1. Make your changes and safe it. Here is an example for the file:

Note: Of course you also can use Finder to navigate into the directory and you can use Textedit for doing the changes. To open the file you have to do "right click" on the Eclipse symbol in your eclipse directory and select 'show packagecontent'.