Bug 58967 - Out of memory when building workspace
Summary: Out of memory when building workspace
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-04-16 23:25 EDT by Wassim Melhem CLA
Modified: 2004-05-10 11:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wassim Melhem CLA 2004-04-16 23:25:00 EDT
I-20040413

This OOM has been occurring very frequently recently.  I launch Eclipse with -
Xxm256M

I have 10 projects in my workspace, all in source form.  I went to the 
Installed JREs pref page and changed the default JRE.  This provoked a full 
build.  The build aborted before finishing with the following in my log:

!SESSION Apr 16, 2004 23:08:02.658 --------------------------------------------
-
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -Xmx256M
!ENTRY org.eclipse.jdt.core 4 4 Apr 16, 2004 23:08:02.658
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.OutOfMemoryError
!ENTRY org.eclipse.jdt.debug.ui 4 150 Apr 16, 2004 23:10:59.286
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:283)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run
(ProgressMonitorDialog.java:409)
	at org.eclipse.jdt.internal.debug.ui.jres.JREsUpdater.buildWorkspace
(JREsUpdater.java:251)
	at org.eclipse.jdt.internal.debug.ui.jres.JREsUpdater.updateJRESettings
(JREsUpdater.java:121)
	at org.eclipse.jdt.internal.debug.ui.jres.JREsPreferencePage$2.run
(JREsPreferencePage.java:133)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:84)
	at org.eclipse.jdt.internal.debug.ui.jres.JREsPreferencePage.performOk
(JREsPreferencePage.java:128)
	at org.eclipse.jface.preference.PreferenceDialog.okPressed
(PreferenceDialog.java:778)
	at org.eclipse.jface.preference.PreferenceDialog.buttonPressed
(PreferenceDialog.java:210)
	at 
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.buttonPressed
(WorkbenchPreferenceDialog.java:75)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:413)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:89)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2584)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2262)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:670)
	at org.eclipse.jface.window.Window.open(Window.java:650)
	at org.eclipse.ui.internal.OpenPreferencesAction.run
(OpenPreferencesAction.java:72)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:550)
	at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:502)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:435)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2584)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2262)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1436)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1407)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:244)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:140)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:90)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:280)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:241)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:117)
	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.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: java.lang.OutOfMemoryError


The list of projects in my workspace were:
debug.core
debug.ui
jdt.debug.ui
jdt.launching
pde
pde.core
pde.runtime
pde.ui
ui.forms
ui.intro
Comment 1 Philipe Mulet CLA 2004-04-19 07:27:20 EDT
Suspecting this to be a natural consequence of memory leaks in the SDK in this 
very build. 
Comment 2 Kent Johnson CLA 2004-05-10 10:55:53 EDT
Wassim: Is this still happening with current builds?

If not then will close since the 0413 build was known to have memory leaks, 
which have since been fixed.
Comment 3 Wassim Melhem CLA 2004-05-10 10:58:36 EDT
Have not seen this one occur since those doomed builds of mid-April.
Comment 4 Kent Johnson CLA 2004-05-10 11:23:32 EDT
Closing... memory leaks in monitors were fixed.