OutOfMemoryError PermGen Crash with Force.com IDE 15

February 20th, 2009

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:

1
2
 
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.

1
2
 
-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.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Categories: Apple, Salesforce

Leave a comment

Comments Feed3 Comments

  1. deepak

    Hi,
    I am getting the same error for quite sometime which is frustrating. reported the same to SFDC support as well but no solution yet.

    Do you sugest anything else as I have increase the size to 1024 and it is still happening..

    Deepak

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. Jeff Douglas

    @Deepak, I’d post it to the official Salesforce message board and see if a PM can help out. Good luck!

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. Anthony

    I ran into this on my Mac and fixed it by changing the “forceide.ini” file to add the perm gen switch. The file is here.

    /Library/salesforce.com/Force.com IDE/forceide.app/Contents/MacOS/

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

Leave a comment

Feed

http://blog.jeffdouglas.com / OutOfMemoryError PermGen Crash with Force.com IDE 15