Diagnosing OOM errors [message #761680] |
Tue, 06 December 2011 21:42 |
David M. Karr Messages: 813 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?
|
|
|
Powered by
FUDForum. Page generated in 0.05504 seconds