Community
Participate
Working Groups
I am opening this bug as a fork of bug 92250. That bug refers to OutOfMemoryErrors that occur when a Sun VM runs out of permanent generation (permgen) memory. Another apparent side-effect when running out of permgen memory is that the VM sometimes hangs indefinitely during class loading. The symptoms are 100% CPU usage forever (or 50% on a dual processor machine). The stack trace generally looks like this: at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160) This is believed to be a VM bug, but keeping this open here to keep track of its occurence in Eclipse, and to record workarounds, etc. The current suggested solution is to upgrade to the latest VM (1.5.0_07), and increase the size of the permanent generation using the command line argument: -XX:MaxPermSize=128M (or more, for a very large application)
*** Bug 146800 has been marked as a duplicate of this bug. ***
*** Bug 153010 has been marked as a duplicate of this bug. ***
*** Bug 152072 has been marked as a duplicate of this bug. ***
*** Bug 149948 has been marked as a duplicate of this bug. ***
*** Bug 144823 has been marked as a duplicate of this bug. ***
*** Bug 153505 has been marked as a duplicate of this bug. ***
*** Bug 150744 has been marked as a duplicate of this bug. ***
*** Bug 156007 has been marked as a duplicate of this bug. ***
Copied from bug 156007 comment #13: One suggestion, though: update the readme section that talks about this setting, to actually describe the problem it solves. Currently, it only mentions OOM errors - but that's what developers see; regular users (like me) only see the hangup, and therefore fail to make a connection between MaxPermSize setting and their problem. This leads to this bug being reported over and over again.
*** Bug 157997 has been marked as a duplicate of this bug. ***
*** Bug 158916 has been marked as a duplicate of this bug. ***
*** Bug 160310 has been marked as a duplicate of this bug. ***
The first and easiest thing to do would be to deliver a eclipse.ini file containing the additional lines: -XX:MaxPermSize=128M This should help most of the users. Users who overwrite these setting by using own vmargs at the command line should get some sort of warning.
Barthel, we cannot do that because this is not a standard VM argument. See bug 92250 comment 28.
*** Bug 161659 has been marked as a duplicate of this bug. ***
*** Bug 161821 has been marked as a duplicate of this bug. ***
*** Bug 155829 has been marked as a duplicate of this bug. ***
*** Bug 168978 has been marked as a duplicate of this bug. ***
*** Bug 171830 has been marked as a duplicate of this bug. ***
*** Bug 161701 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > This is believed to be a VM bug, but keeping this open here to keep track of > its occurence in Eclipse, and to record workarounds, etc. Do you have a link to the bug report in SUN's bug reporting system?
*** Bug 196162 has been marked as a duplicate of this bug. ***
*** Bug 195675 has been marked as a duplicate of this bug. ***
*** Bug 205701 has been marked as a duplicate of this bug. ***
All of the bugs mentioned here and in duplicates were resolved after addition of -XX:MaxPermSize=256m VM argument. *** This bug has been marked as a duplicate of bug 92250 ***