Bug 179545 - OutOfMemoryError with custom VM configuration
Summary: OutOfMemoryError with custom VM configuration
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-03-27 11:04 EDT by Tomasz Zarna CLA
Modified: 2009-08-30 02:08 EDT (History)
1 user (show)

See Also:


Attachments
Log w/ OutOfMemoryError #1 (7.64 KB, text/plain)
2007-03-29 02:52 EDT, Tomasz Zarna CLA
no flags Details
Log w/ OutOfMemoryError #2 (1.48 KB, text/plain)
2007-03-29 02:52 EDT, Tomasz Zarna CLA
no flags Details
Log w/ OutOfMemoryError #3 (2.35 KB, text/plain)
2007-03-29 02:52 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2007-03-27 11:04:19 EDT
Build ID: I20070323-1616

Steps To Reproduce:
1. Replace eclipse.ini which goes with Eclipse to one with parameters below:
-vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
2. Launch Eclipse
3. After working for a while you'll get java.lang.OutOfMemoryError and Eclipse will hang.

Log:
!ENTRY org.eclipse.ui 4 0 2007-03-27 15:26:05.515
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.core.jobs 4 2 2007-03-27 15:26:06.234
!MESSAGE An internal error occurred during: "Decoration Calculation".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
Comment 1 Boris Bokowski CLA 2007-03-27 13:11:35 EDT
Which VM are you using?  Our target VM from Sun is Sun Java 2 Standard Edition 5.0 Update 11 for Microsoft Windows.
Comment 2 Krzysztof Michalski CLA 2007-03-28 04:49:46 EDT
I have similar problem when lunching Eclipse with non standard parameters.
My logs looks as below:

!SESSION 2007-03-27 15:46:50.562 -----------------------------------------------
eclipse.buildId=I20070209-1006
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments:  -launcher C:\eclipse_3.3M5\eclipse.exe -name Eclipse -startup C:\eclipse_3.3M5\plugins\org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -vmargs -Xms40m -Xmx128m -XX:PermSize=64m -XX:MaxPermSize=64m
Command-line arguments:  -os win32 -ws win32 -arch x86 -launcher C:\eclipse_3.3M5\eclipse.exe -name Eclipse -startup C:\eclipse_3.3M5\plugins\org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -vmargs -Xms40m -Xmx128m -XX:PermSize=64m -XX:MaxPermSize=64m

!ENTRY org.eclipse.core.jobs 4 2 2007-03-27 15:49:12.734
!MESSAGE An internal error occurred during: "Building workspace".
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.ui 4 0 2007-03-27 15:49:12.750
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.ui 4 0 2007-03-27 15:49:36.187
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
	at org.eclipse.swt.SWT.error(SWT.java:3478)
	at org.eclipse.swt.SWT.error(SWT.java:3401)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3467)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3107)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2264)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2103)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:452)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:101)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:146)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
Caused by: java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.core.jobs 4 2 2007-03-27 15:49:38.328
!MESSAGE An internal error occurred during: "Java indexing in progress".
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.ui 4 0 2007-03-27 15:49:39.671
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.jdt.core 4 4 2007-03-27 15:50:47.687
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.OutOfMemoryError: Java heap space
!SESSION 2007-03-27 16:06:06.421 -----------------------------------------------
eclipse.buildId=I20070209-1006
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments:  -launcher C:\eclipse_3.3M5\eclipse.exe -name Eclipse -startup C:\eclipse_3.3M5\plugins\org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -vmargs -Xms40m -Xmx256m -XX:PermSize=256m -XX:MaxPermSize=256m
Command-line arguments:  -os win32 -ws win32 -arch x86 -launcher C:\eclipse_3.3M5\eclipse.exe -name Eclipse -startup C:\eclipse_3.3M5\plugins\org.eclipse.equinox.launcher_1.0.0.v20070208a.jar -vmargs -Xms40m -Xmx256m -XX:PermSize=256m -XX:MaxPermSize=256m

!ENTRY org.eclipse.core.resources 2 10035 2007-03-27 16:06:08.906
!MESSAGE A workspace crash was detected. The previous session did not exit normally.

!ENTRY org.eclipse.ui 4 0 2007-03-27 16:11:59.609
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.core.jobs 4 2 2007-03-27 16:12:00.203
!MESSAGE An internal error occurred during: "Launching".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
Comment 3 Tomasz Zarna CLA 2007-03-28 05:28:03 EDT
(In reply to comment #1)
> Which VM are you using?  Our target VM from Sun is Sun Java 2 Standard Edition
> 5.0 Update 11 for Microsoft Windows.

Here is the begining of my log:

eclipse.buildId=I20070323-1616
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments:  -startup c:\apps\eclipse-SDK-3.3M6-win32\plugins\org.eclipse.equinox.launcher_1.0.0.v20070319.jar -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
Command-line arguments:  -os win32 -ws win32 -arch x86 -startup c:\apps\eclipse-SDK-3.3M6-win32\plugins\org.eclipse.equinox.launcher_1.0.0.v20070319.jar -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -data c:\workspace\eclipse\team\local.krakow\branch_cvsNewMenuSupport

As you can see, I'm using Sun's Java 1.5.0 Update 10.
Comment 4 Boris Bokowski CLA 2007-03-28 12:08:52 EDT
Please update to Update 11 and reopen if you still see these problems.
Comment 5 Tomasz Zarna CLA 2007-03-29 02:51:21 EDT
I'm sorry Boris, but I'm still getting OutOfMemoryErrors even after updating to 1.5.0_11. I will attach logs from my last 3 sessions in a minute. It looks like there is always Mylar involved. This might be a misleading clue, because I'm 99% sure that Krzysztof is not using Mylar and he's getting the error too. Is that right Krzysztof? If yes, I will reopen the bug.
Comment 6 Tomasz Zarna CLA 2007-03-29 02:52:09 EDT
Created attachment 62352 [details]
Log w/ OutOfMemoryError #1
Comment 7 Tomasz Zarna CLA 2007-03-29 02:52:29 EDT
Created attachment 62353 [details]
Log w/ OutOfMemoryError #2
Comment 8 Tomasz Zarna CLA 2007-03-29 02:52:46 EDT
Created attachment 62354 [details]
Log w/ OutOfMemoryError #3
Comment 9 Denis Roy CLA 2009-08-30 02:08:04 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.