Constant "PermGen space" crashes in Helios: what is this? [message #545806] |
Fri, 09 July 2010 08:34  |
Eclipse User |
|
|
|
Today I suddenly started to get constant crashes in Helios. Every 5
minutes or so I suddenly get a popup that reads:
--------------------------
Unhandled event loop exception
PermGen space
--------------------------
and then the application terminates. Any idea what that means or what
might be causing this? It is getting totally unusable!
Michael
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #545823 is a reply to message #545806] |
Fri, 09 July 2010 09:48   |
Eclipse User |
|
|
|
I closed and deleted the project and then re-imported it. Since then
these "PermGen space" crashes have stopped, but now almost any file
operation (opening a file, closing it, renaming it, etc. ) becomes
extremely slow and every second time Helios crashes (i.e. just
disappears) in the process. This is getting nightmare!
M.
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #546024 is a reply to message #545836] |
Fri, 09 July 2010 22:46   |
Eclipse User |
|
|
|
I am also experiencing PermGen errors. I have increased the permgen space to 256m (and even to 512m) per the FAQ and it still crashes.
This is Helios (JEE developer distribution) with JDK1.6.0_21 on Windows XP 32-bit.
The workspace log pane has several "Unhandled event loop exception" messages with a stack trace of "java.lang.OutOfMemoryError: PermGen space" followed by another "Unhandled event loop exception" with a stacktrace value of "An exception stack trace is not available."
Shutting down eclipse (when it works -- usually I have to kill the process) usually gives me a message of "Internal Error PermGen Space."
I can easily reproduce this if anyone can think of any other useful information that I could provide.
The .metadata/.log file has this:
!ENTRY org.eclipse.ui.ide 4 1 2010-07-09 16:43:04.500
!MESSAGE Problems occurred while trying to save the state of the workbench.
!SUBENTRY 1 org.eclipse.ui.ide 4 1 2010-07-09 16:43:04.500
!MESSAGE Internal Error
!STACK 0
java.lang.OutOfMemoryError: PermGen space
at com.sun.org.apache.xalan.internal.xsltc.runtime.output.Trans letOutputHandlerFactory.getSerializationHandler(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .getOutputHandler(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .transform(Unknown Source)
at org.eclipse.debug.internal.core.LaunchManager.serializeDocum ent(LaunchManager.java:566)
at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPl ugin.java:1158)
at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager.generatePerspectiveXML(PerspectiveManager.java:901 )
at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager.saving(PerspectiveManager.java:1089)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.saving(DebugUI Plugin.java:476)
at org.eclipse.core.internal.resources.SaveManager.executeLifec ycle(SaveManager.java:361)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveMa nager.java:170)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.SaveManager.broadcastLif ecycle(SaveManager.java:173)
at org.eclipse.core.internal.resources.SaveManager.save(SaveMan ager.java:1108)
at org.eclipse.core.internal.resources.Workspace.save(Workspace .java:2006)
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$ 5.run(IDEWorkbenchAdvisor.java:502)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #546114 is a reply to message #546024] |
Sun, 11 July 2010 08:14   |
Eclipse User |
|
|
|
I have the same problem since updating the jdk to 1.6.0_21. In my
opinion Oracle has changed the jdk so that the eclipse launcher
doesn't recognize it anymore as Sun VM.
Workaround: Start eclipse from the command line and pass the
PermGenSpace parameter:
eclipse.exe -vmargs -XX:MaxPermSize=256m
> I am also experiencing PermGen errors. I have increased the permgen
space
> to 256m (and even to 512m) per the FAQ and it still crashes.
>
> This is Helios (JEE developer distribution) with JDK1.6.0_21 on
Windows XP
> 32-bit.
>
> The workspace log pane has several "Unhandled event loop exception"
> messages with a stack trace of "java.lang.OutOfMemoryError: PermGen
space"
> followed by another "Unhandled event loop exception" with a
stacktrace
> value of "An exception stack trace is not available."
>
> Shutting down eclipse (when it works -- usually I have to kill the
> process) usually gives me a message of "Internal Error PermGen
Space."
>
> I can easily reproduce this if anyone can think of any other useful
> information that I could provide.
>
> The .metadata/.log file has this:
>
> !ENTRY org.eclipse.ui.ide 4 1 2010-07-09 16:43:04.500
> !MESSAGE Problems occurred while trying to save the state of the
> workbench. !SUBENTRY 1 org.eclipse.ui.ide 4 1 2010-07-09
16:43:04.500
> !MESSAGE Internal Error
> !STACK 0
> java.lang.OutOfMemoryError: PermGen space
> at com.sun.org.apache.xalan.internal.xsltc.runtime.output.Trans
> letOutputHandlerFactory.getSerializationHandler(Unknown Source)
> at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
> .getOutputHandler(Unknown Source)
> at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
> .transform(Unknown Source)
> at org.eclipse.debug.internal.core.LaunchManager.serializeDocum
> ent(LaunchManager.java:566)
> at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPl
> ugin.java:1158)
> at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti
> veManager.generatePerspectiveXML(PerspectiveManager.java:901 )
> at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti
> veManager.saving(PerspectiveManager.java:1089)
> at org.eclipse.debug.internal.ui.DebugUIPlugin$2.saving(DebugUI
> Plugin.java:476)
> at org.eclipse.core.internal.resources.SaveManager.executeLifec
> ycle(SaveManager.java:361)
> at org.eclipse.core.internal.resources.SaveManager$1.run(SaveMa
> nager.java:170) at
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.core.internal.resources.SaveManager.broadcastLif
> ecycle(SaveManager.java:173)
> at org.eclipse.core.internal.resources.SaveManager.save(SaveMan
> ager.java:1108)
> at org.eclipse.core.internal.resources.Workspace.save(Workspace
> .java:2006)
> at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$
> 5.run(IDEWorkbenchAdvisor.java:502)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
> run(ModalContext.java:121)
|
|
|
|
|
|
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #546396 is a reply to message #546114] |
Mon, 12 July 2010 15:52   |
Eclipse User |
|
|
|
Olaf is correct, the launcher is looking for a vendor "Sun Microsystems",
which is now "Oracle".
As a side note, it is better to add the -XX:MaxPermSize=256m in the
eclipse.ini file after the -vmargs line because specifying vm arguments on
the command line override the vm arguments in the .ini file.
-Andrew
Olaf Groeger wrote:
> I have the same problem since updating the jdk to 1.6.0_21. In my
> opinion Oracle has changed the jdk so that the eclipse launcher
> doesn't recognize it anymore as Sun VM.
>
> Workaround: Start eclipse from the command line and pass the
> PermGenSpace parameter:
> eclipse.exe -vmargs -XX:MaxPermSize=256m
>
>
>> I am also experiencing PermGen errors. I have increased the permgen
> space
>> to 256m (and even to 512m) per the FAQ and it still crashes.
>>
>> This is Helios (JEE developer distribution) with JDK1.6.0_21 on
> Windows XP
>> 32-bit.
>>
>> The workspace log pane has several "Unhandled event loop exception"
>> messages with a stack trace of "java.lang.OutOfMemoryError: PermGen
> space"
>> followed by another "Unhandled event loop exception" with a
> stacktrace
>> value of "An exception stack trace is not available."
>>
>> Shutting down eclipse (when it works -- usually I have to kill the
>> process) usually gives me a message of "Internal Error PermGen
> Space."
>>
>> I can easily reproduce this if anyone can think of any other useful
>> information that I could provide.
>>
>> The .metadata/.log file has this:
>>
>> !ENTRY org.eclipse.ui.ide 4 1 2010-07-09 16:43:04.500
>> !MESSAGE Problems occurred while trying to save the state of the
>> workbench. !SUBENTRY 1 org.eclipse.ui.ide 4 1 2010-07-09
> 16:43:04.500
>> !MESSAGE Internal Error
>> !STACK 0
>> java.lang.OutOfMemoryError: PermGen space
>> at com.sun.org.apache.xalan.internal.xsltc.runtime.output.Trans
>> letOutputHandlerFactory.getSerializationHandler(Unknown Source)
>> at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
>> .getOutputHandler(Unknown Source)
>> at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
>> .transform(Unknown Source)
>> at org.eclipse.debug.internal.core.LaunchManager.serializeDocum
>> ent(LaunchManager.java:566)
>> at org.eclipse.debug.core.DebugPlugin.serializeDocument(DebugPl
>> ugin.java:1158)
>> at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti
>> veManager.generatePerspectiveXML(PerspectiveManager.java:901 )
>> at org.eclipse.debug.internal.ui.launchConfigurations.Perspecti
>> veManager.saving(PerspectiveManager.java:1089)
>> at org.eclipse.debug.internal.ui.DebugUIPlugin$2.saving(DebugUI
>> Plugin.java:476)
>> at org.eclipse.core.internal.resources.SaveManager.executeLifec
>> ycle(SaveManager.java:361)
>> at org.eclipse.core.internal.resources.SaveManager$1.run(SaveMa
>> nager.java:170) at
>> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.core.internal.resources.SaveManager.broadcastLif
>> ecycle(SaveManager.java:173)
>> at org.eclipse.core.internal.resources.SaveManager.save(SaveMan
>> ager.java:1108)
>> at org.eclipse.core.internal.resources.Workspace.save(Workspace
>> .java:2006)
>> at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$
>> 5.run(IDEWorkbenchAdvisor.java:502)
>> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
>> run(ModalContext.java:121)
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #559240 is a reply to message #545806] |
Thu, 16 September 2010 07:23   |
Eclipse User |
|
|
|
Hi!!
Does it work??
I have the same problem.
I increased the PermGen space in the eclipse.ini file on 512m, but nothing happen.
I use the same eclipse version and the same java version as the user above.
I have a new bigger problem. I pressed the "run"-button and there comes a massage that this function isn't available.
Do someone know how I can solve these both problems??
Thanks
jared.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #559568 is a reply to message #545806] |
Fri, 17 September 2010 08:40   |
Eclipse User |
|
|
|
The following error message comes because the jdk 1.6.0_21 b06 has a bug, right??
!ENTRY org.eclipse.equinox.launcher 4 0 2010-09-17 10:35:36.482
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.OutOfMemoryError: PermGen space
Can Eclipse produce the error message above or does the error message only come if there is a bug in the jdk??
thanks.
|
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #560049 is a reply to message #559853] |
Mon, 20 September 2010 23:36   |
Eclipse User |
|
|
|
So I have this same issue. This thread has been very helpful. Thanks to the poster and contributors!
I assume the JDK b07 requires the JDK, JRE, and debug jars; is that correct?
I am at my wits end on this crazy project. 17 steps deep on the dependencies and now I have to go back and change java itself. Madness. I was ready to call Helios Eclipse "collapse" as a rude nickname.
|
|
|
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #627180 is a reply to message #627089] |
Wed, 22 September 2010 21:57   |
Eclipse User |
|
|
|
The JDK on the oracle download site (java.sun.com) does contain the b07 version. I just downloaded it and installed it.
Are you specifying the vm as either a command line argument with -vm {path to jdk}/bin/javaw.exe on the command line or including the vm definition in your eclipse.ini.
If not, you may have path problems that are causing a different vm to be run instead of the one you think is running.
If you can't get the b07 JDK installed, then follow one of the other work arounds documented in the sticky post at the top of the forum.
|
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #643792 is a reply to message #546396] |
Wed, 08 December 2010 09:59   |
Eclipse User |
|
|
|
Im running into the PermGen space issue even after adding the ini settings. My ini file is as follows:
-Xms512m
-Xmx512m
-XX:MaxPermSize=256m
However, Ive tried most ever configuration of heap Xms, Xmx and XX:MaxPermSize.
The issue for me seems to be especially common when I try and run a Birt report from within Eclipse.
Im running jdk 1.6.0_21 and Eclipse Version: Helios Service Release 1
Build id: 20100917-0705
Is there anything else I can try except altering the ini settings?
|
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #643794 is a reply to message #643793] |
Wed, 08 December 2010 10:11   |
Eclipse User |
|
|
|
Sorry, I posted the wrong version. I am running :
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
However the error still occurs. As soon as I starting running Birt reports I get the following error (or similar):
SEVERE: Error processing request
java.lang.OutOfMemoryError: PermGen space
[Updated on: Wed, 08 December 2010 10:28] by Moderator Report message to a moderator
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #645649 is a reply to message #545806] |
Sun, 19 December 2010 12:40   |
Eclipse User |
|
|
|
What I found helpful was to downgrade jvm. I don't know how to use eclipse.ini, so I use
eclipse.exe -vm "c:\program files\java\jdk1.6.0_10\bin"
to run Helios (Windows platform, as you can see). Running JDK1.6.0_10, everything started to work fine, which was great as I urgently needed to make Helios work for school.
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #645662 is a reply to message #645649] |
Sun, 19 December 2010 15:58   |
Eclipse User |
|
|
|
On Sun, 2010-12-19 at 07:40 -0500, Tomas Rehorek wrote:
> What I found helpful was to downgrade jvm. I don't know how to use eclipse.ini, so I use
>
> eclipse.exe -vm "c:\program files\java\jdk1.6.0_10\bin"
>
> to run Helios (Windows platform, as you can see). Running JDK1.6.0_10, everything started to work fine, which was great as I urgently needed to make Helios work for school.
That isn't the correct format for specifying the jvm on the command
line. You need to point to the actual executable. It should be c:
\program files\java\jdk1.6.0_10\bin\javaw.exe
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #645732 is a reply to message #645662] |
Mon, 20 December 2010 09:59   |
Eclipse User |
|
|
|
I was able to resolve the "permgen space" errors that I was getting by making the following changes (after also making the changes to the .ini specified in this thread):
In "Run Configurations" > "Apache Tomcat"
If you click on the "Arguments" tab then add the following to the VM arguments:
-Xmx1024m -XX:MaxPermSize=256M.
Since I added this I haven't had any issues running Helios on JDK1.6.0_22.
Hope this helps.
Iain
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #674190 is a reply to message #645732] |
Thu, 26 May 2011 04:49   |
Eclipse User |
|
|
|
Hi, well for a reason I still don't know. The parameters given to the eclipse.ini are not taken. So I'm using java commands directly to execute the eclipse with the specific parameters.
Here is a solution that at least interrupt the constant crashing of eclipse.
Command format: java [ options ] -jar file.jar [ argument ... ]
Examples:
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar (for eclipse 3.5.x)
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar (for eclipse 3.6.x)
Best Regards,
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #674191 is a reply to message #674190] |
Thu, 26 May 2011 04:54   |
Eclipse User |
|
|
|
Hi, well for a reason I still don't know. The parameters given to the eclipse.ini are not taken. So I'm using java commands directly to execute the eclipse with the specific parameters.
Here is a solution that at least interrupt the constant crashing of eclipse.
Command format: java [ options ] -jar file.jar [ argument ... ]
Examples:
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar (for eclipse 3.5.x)
java -XX:PermSize=64M -XX:MaxPermSize=256M -Xms512M -Xmx1024M -jar <ECLIPSE_HOME>/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar (for eclipse 3.6.x)
Best Regards,
[Updated on: Thu, 26 May 2011 04:56] by Moderator Report message to a moderator
|
|
|
Re: Constant "PermGen space" crashes in Helios: what is this? [message #1456349 is a reply to message #545806] |
Thu, 30 October 2014 09:08  |
Eclipse User |
|
|
|
I got into this age old problem of "permgen space" issue, whenever I was opening up a JSP or XML file. And as members have posted, my eclipse indigo 3.7, was not picking up permgen settings. The neatest way that I could make it work was to introduce -XX:MaxPermSize=512m after -vmargs
my eclipse.ini looks like:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-XX:MaxPermSize=512m
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx4192m
Hope this helps someone!
|
|
|