facebook

Error message. problem with PermGen (non-heap memory)

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #269606 Reply

    kwame
    Member

    I am getting this Error with MyEclipse running on Mac OS X, but not on MyEclipse running on Windows XP:

    MyEclipse has detected that less than 5% of the 64MB of Perm Gen (Non-heap memory) space remains.

    It is strongly recommended that you exit and restart MyEclipse with new virtual machine
    memory paramters to increase this memory. Failure to do so can result in data loss.

    The recommended Eclipse memory parameters are:
    eclipse.exe -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

    What does it mean, and what can I do about it? Where can I make these changes to the memory parameters?

    #269611

    Loyal Water
    Member

    Hi Kwame,
    By setting these parameters, you are increasing the Perm Space and Heap Space. You’re basically optimizing your memory settings.

    This change has to be made in the eclipse.ini file. To get at the eclipse.ini file you need to right click on your Eclipse executable, do “Show Contents” then drill down to the Mac OS folder which should contain your eclipse.ini file inside. On Mac, Eclipse ships quite a few default flags in the eclipse.ini file, so you might want to back it up before changing it.

    #269615

    kwame
    Member

    Thanks for the reply.

    These are the contnts of my eclipse.ini file:

    -vmargs
    -Dosgi.splashLocation=/Users/name/Library/MyEclipse 5.1.1 GA/eclipse/MyEclipseSplash.bmp

    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.2.1.r322_v20070130/jdi.jar
    -Xms128m
    -Xmx512m
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -Dorg.eclipse.swt.internal.carbon.noFocusRing

    But the error message would like me to change to :

    -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:PermSize= 128M

    So do I append this to the file, or just change the whole file to this?

    #269632

    Loyal Water
    Member

    -vmargs
    -Dosgi.splashLocation=/Users/name/Library/MyEclipse 5.1.1 GA/eclipse/MyEclipseSplash.bmp

    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Xbootclasspath/p:../../../plugins/org.eclipse.jdt.debug_3.2.1.r322_v20070130/jdi.jar
    -Xms128m
    -Xmx512m
    -XX:PermSize=64m
    -XX:MaxPermSize=128m
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -Dorg.eclipse.swt.internal.carbon.noFocusRing

    Add -XX:PermSize=64m and -XX:MaxPermSize= 128m as shown above.

    #269895

    kwame
    Member

    When I insert

    -XX:PermSize=64m
    -XX:MaxPermSize=128m

    into the eclipse.ini file, MyEclipse no longer opens. I get a “JVM terminated” message.

    if i take out those 2 lines, it works just fine. Any suggestions

    #269904

    Loyal Water
    Member

    Hi Kwarne,
    On some OS, even a simple newline char will screw up the whole thing. Try and put all the memory args on 1 line in the eclipse.ini file and see if it loads it then.
    http://www.myeclipseide.com/PNphpBB2-viewtopic-t-10087-sid-f71d32f44d92c3ceccdccc1ea6b34f68.html

    #279467

    kwame
    Member

    I upgraded to MyEclipse6.0 and again I’m getting the same out of memory error, only now i cant find eclipse.ini to make the adjustments:
    -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

    #279508

    Loyal Water
    Member

    kwame,
    Are there any additional messages being logged under <workspace>/.metadata/.log file ?

    #279513

    kwame
    Member

    Thanks for the reply. Its working now. I think what happened was that I needed to have the arguments on different lines and not all on the same line.

    #279528

    Loyal Water
    Member

    Glad it worked. Thanks for letting me know.

    #280304

    kwame
    Member

    This message has not been recovered.

    #280333

    Loyal Water
    Member

    This message has not been recovered.

    #280343

    kwame
    Member

    This message has not been recovered.

    #280344

    Loyal Water
    Member

    This message has not been recovered.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Error message. problem with PermGen (non-heap memory)

You must be logged in to post in the forum log in