6 Replies Latest reply on Nov 16, 2011 10:17 AM by amandaburris

    PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space

    amandaburris

      I've been searching the net for days and have tried changing the eclipse.ini per everyone's instructions...but still keep crashing after small changes.

       

      java.lang.OutOfMemoryError: PermGen space

       

       

      -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform -vm C:Program Files/Java/jre6/bin/clientjvm.dll -vmargs -Dosgi.requiredJavaVersion=1.6 -Declipse.p2.unsignedPolicy=allow -Xmn256m -Xms1024m -Xmx768m -Xss4m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:CompileThreshold=5 -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=70 -XX:+CMSIncrementalPacing -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote

       

       

      here's the .log

       

       

      !SESSION 2011-11-15 14:27:03.125 -----------------------------------------------
      eclipse.buildId=I20100608-0911
      java.version=1.6.0_16
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Framework arguments:  -v clean
      Command-line arguments:  -os win32 -ws win32 -arch x86 -v clean

      !ENTRY org.eclipse.ui 2 0 2011-11-15 14:27:07.390
      !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
      !SUBENTRY 1 org.eclipse.ui 2 0 2011-11-15 14:27:07.390
      !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'

      !ENTRY org.eclipse.jface 2 0 2011-11-15 14:27:15.218
      !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
      !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
      !MESSAGE A conflict occurred for CTRL+G:
      Binding(CTRL+G,
      ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.wor kspace,Declaration in Workspace,
        Search for declarations of the selected element in the workspace,
        Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
        ,
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,,system)
      Binding(CTRL+G,
      ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
        ,
        Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
        LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      com.adobe.flexide.editorcore.flexEditorScope,,,system)
      Binding(CTRL+G,
      ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
        ,
        Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
        LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
      !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
      !MESSAGE A conflict occurred for CTRL+SHIFT+G:
      Binding(CTRL+SHIFT+G,
      ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.works pace,References in Workspace,
        Search for references to the selected element in the workspace,
        Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
        ,
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      org.eclipse.ui.contexts.window,,,system)
      Binding(CTRL+SHIFT+G,
      ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
        ,
        Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
        LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      com.adobe.flexide.editorcore.flexEditorScope,,,system)
      Binding(CTRL+SHIFT+G,
      ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
        ,
        Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
        LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
        ,,true),null),
      org.eclipse.ui.defaultAcceleratorConfiguration,
      com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)

      !ENTRY org.eclipse.core.jobs 4 2 2011-11-15 14:28:01.375
      !MESSAGE An internal error occurred during: "Building workspace".
      !STACK 0
      java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.j ava:188)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:58 0)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java: 550)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager. java:481)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(Class pathManager.java:469)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :449)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:216)
      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
      at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
      at com.adobe.flexbuilder.project.compiler.internal.BuilderUtils.copyDependents(BuilderUtils. java:483)
      at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:393)
      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncremen talBuilder.java:187)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

        • 1. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
          John Hall Level 4

          What are your settings? What 3rd party plug-ins are you using, if any?

          • 2. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
            amandaburris Level 1

            Hi John,

             

            I downloaded and installed Flash Builder 4.5.1 Premium just last week.

             

            no plug-ins

             

            I have disabled Design Mode

             

            and disabled "Mark Occurances"

             

            all other preferences are default. i tried changing some of them but reverted back to default.

            • 3. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
              drkstr_1 Level 4

              Also, describe your project set up. Sometimes these things can happen if your workspace is not configured correctly (like two library projects that import each other for example).

               

              And I assume you checked to make sure you aren't actually out of RAM?

               

              *edit*

               

              Also, you mention editing eclipse.ini, but I think you actually need FlashBuilder.ini in your FB install directory. Mine looks like this:

               

              -nl
              en_US
              -startup
              eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
              --launcher.library
              eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
              --launcher.defaultAction
              openFile
              -vmargs
              -Xms256m
              -Xmx512m
              -XX:MaxPermSize=256m
              -XX:PermSize=64m
              -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
              -Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
              

               

               

              If you are doing something that's particularly memory intesnive, try changing:

               

              -Xmx1024m

              -XX:MaxPermSize=512m

              • 4. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
                amandaburris Level 1

                I've just barely started. i imported two swc files and a set of classes for SharePoint Connector. that's it.

                 

                PMWizard.jpg

                 

                 

                i'm running Windows XP Professional Version 2002, Service Pack 3

                 

                Intel Core 2 Duo CPU

                 

                3.49 GB of RAM

                 

                I've been watching the system monitor to see what happening. Before I changed the eclipse.ini it was maxed out.

                 

                now monitor seems to indicate everything is going ok, but after a few clicks or cut/paste, it locks up.

                • 5. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
                  amandaburris Level 1

                   

                  Yes, i had tried changing it to match the changes in the eclipse.ini file...didn't work either so i changed it back.

                   

                   

                  -nl

                  en_US

                  -startup

                  eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

                  --launcher.library

                  eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810

                  --launcher.defaultAction

                  openFile

                  -vmargs

                  -Xms256m

                  -Xmx512m

                  -XX:MaxPermSize=128m

                  -XX:PermSize=64m

                  -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins

                  -Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication

                  • 6. Re: PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space
                    amandaburris Level 1

                    I think i finally found the right combination...it hasn't crashed since making these modifications.

                     

                    I re-read the eclipse "readme" file and added the the two highlighted lines. duplicated in both eclipse.ini and flashbuilder.ini.  i also installed the latest version of Java.

                     

                     

                    -nl

                    en_US

                    -startup

                    eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

                    --launcher.library

                    eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810

                    --launcher.defaultAction

                    openFile

                    -showsplash

                    org.eclipse.platform

                    --launcher.XXMaxPermSize

                    256m

                    -vm

                    C:/Program Files/Java/jre6/bin/javaw.exe

                    -vmargs

                    -Dosgi.requiredJavaVersion=1.6

                    -Declipse.p2.unsignedPolicy=allow

                    -Xmn256m

                    -Xms1024m

                    -Xmx768m

                    -Xss4m

                    -XX:PermSize=256m

                    -XX:MaxPermSize=256m

                    -XX:CompileThreshold=5

                    -XX:MaxGCPauseMillis=10

                    -XX:MaxHeapFreeRatio=70

                    -XX:+CMSIncrementalPacing

                    -XX:+UnlockExperimentalVMOptions

                    -XX:+UseG1GC

                    -XX:+UseFastAccessorMethods

                    -Dcom.sun.management.jmxremote