Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Diagnosing OOM errors
Diagnosing OOM errors [message #761680] Tue, 06 December 2011 21:42
David M. Karr is currently offline David M. Karr
Messages: 353
Registered: July 2009
Senior Member
Using Helios, JDK 1.7.0_01, WinXPSP3.

I'm getting 2-3 OOM errors in Eclipse every day, but I've been monitoring it with JVisualVM, and at the point where it gives me the OOM error (before I exit the workbench), the heap and permgen have tons of space.

Right now when I'm being prompted to exit the workbench after the latest failure, JVisualVM says that I'm using 450mb/847mb (max 1409mb) in the heap, and 116mb/194mb (max 335mb) in permgen. Neither of the graphs show the blue used line anywhere close to the orange size line.

The last entry in the .log file begins with this:
-----------------
!ENTRY org.eclipse.core.jobs 4 2 2011-12-06 13:31:40.545
!MESSAGE An internal error occurred during: "Building workspace".
!STACK 0
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.zip.ZipFile.<init>(ZipFile.java:115)
at org.eclipse.jdt.internal.core.builder.ClasspathJar.isPackage(ClasspathJar.java:179)
-----------------

The last thing I did before the failure was creating a class. It displayed the view of the class skeleton before reporting the OOM.

I recently tried adding some experimental parameters to the JVM startup:
----------
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xss384k
-Xmx1344m
-XX:MaxPermSize=320m
-Xverify:none
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-Dsun.lang.ClassLoader.allowArraySyntax=true
----------

Any suggestions?
Previous Topic:Connectivity Issues when installing plugins
Next Topic:Failing to get java programs with more than one class to run
Goto Forum:
  


Current Time: Fri Sep 19 22:00:57 GMT 2014

Powered by FUDForum. Page generated in 0.01757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software