Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse freezes often
icon8.gif  Eclipse freezes often [message #529101] Thu, 22 April 2010 20:16 Go to next message
Eclipse UserFriend
Hi,
My eclipse freezes for around 10 seconds every so often after I edit a file, save a file, or incrementally compile changes. I've taken a number of thread dumps of the eclipse process during the freeze and all of them seem to point to one RUNNABLE thread as the culprit. I'm posting the thread dump below. Anyone familiar with eclipse internal can tell me where I should be looking to fix this(Which plugins to disable, settings to chage, etc).

I'm on WinXP. JRE 1.6.0_17.

Thanks

Sample 1:
"main" prio=6 tid=0x00ee6800 nid=0x1ad8 runnable [0x0012d000]
java.lang.Thread.State: RUNNABLE
at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3107)
at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7130)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:17 57)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602 )
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:231 3)
at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1530)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4036 )
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5821)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602 )
at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3107)
at org.eclipse.swt.widgets.Control.setRedraw(Control.java:3180)
at org.eclipse.swt.widgets.Tree.setRedraw(Tree.java:4746)
at org.eclipse.ui.internal.views.markers.ExtendedMarkersView$13 .runInUIT
hread(ExtendedMarkersView.java:1370)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.ja
va:134)
- locked <0x206790f8> (a org.eclipse.swt.widgets.RunnableLock)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.ja
va:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.jav
a:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEAppli
cation.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
e.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
cation(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
lipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

------------------------------------------------------------ ------------
Sample 2:
"main" prio=6 tid=0x00ee6800 nid=0x1ad8 runnable [0x0012e000]
java.lang.Thread.State: RUNNABLE
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:231 3)
at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1530)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4036 )
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5821)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589 )
at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3197)
at org.eclipse.swt.widgets.Tree.createItem(Tree.java:2097)
at org.eclipse.swt.widgets.TreeItem.<init>(TreeItem.java:201)
at org.eclipse.swt.widgets.TreeItem.<init>(TreeItem.java:159)
at org.eclipse.jface.viewers.TreeViewer.createNewRowPart(TreeVi ewer.java
:813)
at org.eclipse.jface.viewers.TreeViewer.newItem(TreeViewer.java :311)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractT
reeViewer.java:826)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer
.java:802)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)

at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractT
reeViewer.java:776)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:6
39)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandT oLevel(Ab
stractTreeViewer.java:1709)
at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(A bstractTr
eeViewer.java:1054)
at org.eclipse.ui.internal.views.markers.MarkersTreeViewer.expa ndToLevel
(MarkersTreeViewer.java:75)
at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.re expandCat
egories(ExtendedMarkersView.java:1587)
at org.eclipse.ui.internal.views.markers.ExtendedMarkersView$13 .runInUIT
hread(ExtendedMarkersView.java:1368)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.ja
va:134)
- locked <0x24127aa8> (a org.eclipse.swt.widgets.RunnableLock)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.ja
va:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.jav
a:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEAppli
cation.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
e.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
cation(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
lipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

"VM Thread" prio=10 tid=0x03320000 nid=0x196c runnable

"VM Periodic Task Thread" prio=10 tid=0x03342c00 nid=0xcf4 waiting on condition
Re: Eclipse freezes often [message #529185 is a reply to message #529101] Fri, 23 April 2010 06:36 Go to previous messageGo to next message
Eclipse UserFriend

You might want to check if your compiled programs are still running. If you got several java virtaul machines running, it will eat up your cpu time, making your cpu usage 100%.

In windows do ctrl+alt+del and look in the list of programs running....

Or stop the process with the red button in the eclipse editor window.

Hope this is helpfull for you.
Re: Eclipse freezes often [message #529217 is a reply to message #529185] Fri, 23 April 2010 09:46 Go to previous messageGo to next message
Eclipse UserFriend
chihwahli, that's not the problem
Re: Eclipse freezes often [message #529470 is a reply to message #529101] Sun, 25 April 2010 18:22 Go to previous messageGo to next message
Eclipse UserFriend
"NR" <Natan.Roslavker@barcap.com> wrote in message
news:hqqoss$vbf$1@build.eclipse.org...
> Hi,
> My eclipse freezes for around 10 seconds every so often after I edit a
> file, save a file, or incrementally compile changes. I've taken a number
> of thread dumps of the eclipse process during the freeze and all of them
> seem to point to one RUNNABLE thread as the culprit. I'm posting the
> thread dump below. Anyone familiar with eclipse internal can tell me where
> I should be looking to fix this(Which plugins to disable, settings to
> chage, etc).
> I'm on WinXP. JRE 1.6.0_17.
>
> Thanks
>
> Sample 1:
> "main" prio=6 tid=0x00ee6800 nid=0x1ad8 runnable [0x0012d000]
> java.lang.Thread.State: RUNNABLE
> at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3107)
> at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7130)
> at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
> at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:17
> 57)
> at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602 )
> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:231 3)
> at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1530)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4036 )
> at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5821)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602 )
> at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3107)
> at org.eclipse.swt.widgets.Control.setRedraw(Control.java:3180)
> at org.eclipse.swt.widgets.Tree.setRedraw(Tree.java:4746)
> at org.eclipse.ui.internal.views.markers.ExtendedMarkersView$13
> .runInUIT
> hread(ExtendedMarkersView.java:1370) [etc.]


Both of the stack traces look like a Tree is trying to redraw, under a
MarkersView. Sounds to me like maybe your project has got a lot of markers
(warnings, etc.) and the Problems (or Markers) view is taking a long time to
display them. If you close the Problems pane does the problem go away?

I believe I've seen reports of this before, in cases where there are lots
(thousands) of warnings; you might want to search Bugzilla to see if there
is any workaround or resolution.
Re: Eclipse freezes often [message #532304 is a reply to message #529470] Fri, 07 May 2010 16:56 Go to previous message
Eclipse UserFriend
Walter, that was right on the money. Thank you!
My workspace has thousands of warnings. After I filtered them out from the 'Problems' view, the sporadic freezes stopped.
Previous Topic:JVM scheduler
Next Topic:Difference between eclipse and javac
Goto Forum:
  


Current Time: Fri Mar 28 12:51:40 EDT 2025

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

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

Back to the top