facebook

Perm gen space out

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #297765 Reply

    LeeMeador
    Member

    I get this message periodically and want it to stop.

    ” MyEclipse has detected that less than 5% of the 32MB of Code Cache (Non-heap memory) space remains.”

    I searched for it in your search and foung nothing. (Well I had to remove the 5% to get it to even return but that’s a problem with your forum software.)

    I googled and found a link into your forum but those suggestions don’t seem to help.

    I start Eclipse with this command (in the shortucut in my “Quick Launch” toolbar)

    “C:\Program Files\eclipse-3.3-simple\eclipse.exe” -vmargs -Xms384M -Xmx1024M -XX:PermSize=96m -XX:MaxPermSize=256m

    The “start in” folder is: “C:\Program Files\eclipse-3.3-simple”

    In the eclipse.ini file in that folder you find this stuff:

    —–
    -showsplash
    org.eclipse.platform
    -vm
    C:/java/jdk613/bin
    –launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms384m
    -Xmx1024m
    -XX:PermSize=96m
    -XX:MaxPermSize=256m
    —–

    —–
    *** Date:
    Tuesday, April 21, 2009 1:52:18 PM CDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    Eclipse SDK

    Version: 3.3.2
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    C:\Program Files\eclipse-3.3-simple\\plugins\org.eclipse.platform_3.3.3.r33x_r20080129\splash.bmp
    -launcher
    C:\Program Files\eclipse-3.3-simple\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\eclipse-3.3-simple\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\eclipse-3.3-simple\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -vm
    C:/java/jdk613/bin\..\jre\bin\client\jvm.dll

    —–

    #297767 Reply

    Ton Huisman
    Member
    #297768 Reply

    LeeMeador
    Member

    Thanks but, as you can see from my email, I already have the suggested solution in place and it does not fix the problem.

    Is there something wrong with the way I put the -XX stuff in?

    #297771 Reply

    support-joy
    Member

    LeeMeador,
    When editing the .ini file, make sure that there are no special charecters, spaces etc. are not included. To avoid this its better to edit using notepad. I would recomend to take a backup of your file before editing.
    If this solution doesnt work, i will get a dev team to assist you.

    #297859 Reply

    LeeMeador
    Member

    You can see the ASCII of my eclipse.ini file in the first email. I went back and verified that there were no spaces on the ends of the lines (as that wouldn’t show up on the screen).

    I brought up eclipse.ini in a binary editor and verified that there are no invisible control characters in the file. There is a single 0x0A character to mark the end of each line with exactly one 0x0A at the end of the file.

    The same error message keeps popping up within Eclipse.

    Since it is obviously a MyEclipse screen you might want to change it so I can copy the suggested command line for pasting somewhere useful. That part of the message can not be selected for copy/paste.

    What is next?

    #298004 Reply

    Loyal Water
    Member

    The eclipse.exe launcher is super-tempormental about arguments — tcan you remove all the arguments off your shortcut, and just specify them in the ini file — then after startup to see if that helps? It’s possible the exe is seeing both, getting confused and just ignoring them.

    #298917 Reply

    LeeMeador
    Member

    It took a while to figure out if it is working . And then a while to get back to you.

    I moved all the arguments to the .ini file and I still get the message eventually. It seems to take a little longer but that is purely subjective on my part.

    One question: When it says “32K” is that a string that is a part of the error message or does it come from the JVM somewhere. If I were to change the setting to 64K and it still ran out of perm-gen space, would the message change to say that “64K” was all used up. I just ask because I have never seen any number but 32K in that message, no matter what I have done to the starup shortcut or the ini file.

    So … what is my next step on the road to fix this irritation? I’m sure its been long enough that you will need to read the previous messages in this “thread” to see what we have tried. It takes so long to see if it worked, I lose my train of thought.

    Thaniks.

    #299015 Reply

    Loyal Water
    Member

    LeeMeador,
    I check with the dev team and it seems like the -Xmx won’t help, the “code cache” is a different code space, you can adjust it with the new arguments that can be found here:
    https://www.genuitec.com/forums/topic/troubleshoot-getting-outofmemoryexceptions/

    This has been fixed in the 7.5 release.

    #299074 Reply

    LeeMeador
    Member

    I added the -XX:ReservedCodeCacheSize=64m to my eclipse.ini and will try that.

    Your email is unclear just what you wanted me to do. You mentioned the Xmx which I have.

    You did not mention the permgen setting which I also have (as mentioned in my first message) and that was one thing suggested in the link you gave. I don’t know if you didn’t notice it was already there and suggested I add it or if you just didn’t mention it and were suggesting the -XX:ReservedCodeCacheSize=64m setting only.

    Well, we’ll see if it works.

    BTW – You did not answer my 2nd question in the last email. Please answer it.

    #308691 Reply

    LeeMeador
    Member

    I was just looking at my questions to you guys (by searching for messages from me) and it doesn’t seem that you are helping me very much.

    This interchange consisted of me sending you pretty much all the info you needed and you would suggest that I use a feature that my first email already showed I was using. You did that repeatedly. If I put it in my email, I expect you to read it and not tell me to do what I’ve already shown you I am doing. This is not good support.

    The other recent question wasn’t really answered either. But I noticed a misunderstanding between us and am giving you another chance over in that question thread.

    #308779 Reply

    support-joy
    Member

    LeeMeador,

    Sorry for the late reply. Are you still facing this issue? I see that you reported this issue on ME 6.0. Can you download the latest ME 8.5 and recheck?

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Perm gen space out

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