OutOfMemoryError PermGen Crash with Force.com IDE 15

I upgraded my Windows XP, Windows Vista, Windows 7 (beta VM) and OS X machines with the new Force.com IDE v15 yesterday when it came out. The new IDE runs great on all of my machines except my Mac. It crashed frequenty with the following error:

java.lang.OutOfMemoryError: PermGen space

I poked around the Eclipse.org site and this seems to be a known bug with Eclipse 3.3.x. Here are a couple of links (bug 195897 & bug 203325) that outline the issue. Essentially the problem is that the launcher does not correctly identify the Sun JVM on Apple OSX so the correct params are not passed to the JVM.

To fix this issue you'll need to edit the eclipse.ini file ([Eclipse Install Folder]/Eclipse.app/Contents/MacOS/eclipse.ini) and add the following after the -vmargs switch. This correctly passed the params to the JVM.

-XX:MaxPermSize=256m

You can set this value to the amount of memory you would like to use.

Note, there may be another eclipse.ini file located at [Eclipse Install Folder]/eclipse.ini so you will want to make the changes here also.