Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Intermittent hanging when editing java files in eclipse(unresponsive behavior from eclipse)
Intermittent hanging when editing java files in eclipse [message #1071626] Sat, 20 July 2013 17:59 Go to next message
tony tony is currently offline tony tonyFriend
Messages: 2
Registered: July 2013
Junior Member
Hello,

I'm seeing intermittent freezing/hanging behavior when using eclipse (I have never experienced this before with eclipse), unresponsive behavior for 1-2 minutes in certain cases.

I took two thread dumps while eclipse was freezing, please see attached.

There aren't really steps to reproduce, sometimes it occurs when I'm not even doing anything to a java file. Also note, the file that was in focus was already saved. Note, my machine is still functioning properly while the unresponsive behavior occurs (no high memory or cpu usage during behavior).

Please let me know of any additional debugging I can do to figure this out or additional logging I can turn on to get more information.

See some of my machine/application specs below

Thank you!


Windows 7 (64 bit), Intel core2 extreme x9100 3.06ghz, 8gb of ram

Eclipse java EE web developer
version: indigo service release 2
build id: 20120216-1857
The project I have been working in is about 20-30 files (android/java project)

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.7.0_21\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1000m
-Xmx2000m
  • Attachment: dump.txt
    (Size: 21.17KB, Downloaded 335 times)
  • Attachment: dump2.txt
    (Size: 21.17KB, Downloaded 485 times)
Re: Intermittent hanging when editing java files in eclipse [message #1072559 is a reply to message #1071626] Tue, 23 July 2013 03:18 Go to previous messageGo to next message
tony tony is currently offline tony tonyFriend
Messages: 2
Registered: July 2013
Junior Member
occurred again today, got another thread dump (See attached)

These are the only threads really doing anything:

1)

Thread 50: (state = IN_NATIVE)
- java.io.WinNTFileSystem.getBooleanAttributes(java.io.File) @bci=0 (Compiled frame; information may be imprecise)
- java.io.File.isFile() @bci=20, line=829 (Interpreted frame)
- org.eclipse.jdt.internal.core.JavaModel.getExternalTarget(org.eclipse.core.runtime.IPath, boolean) @bci=132, line=353 (Interpreted frame)
- org.eclipse.jdt.internal.core.JavaModel.getTarget(org.eclipse.core.runtime.IPath, boolean) @bci=13, line=319 (Interpreted frame)
- org.eclipse.jdt.internal.core.search.indexing.IndexManager.rebuildIndex(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath) @bci=2, line=572 (Interpreted frame)
- org.eclipse.jdt.internal.core.search.indexing.IndexManager.getIndex(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath, boolean, boolean) @bci=51, line=242 (Interpreted frame)
...



2)



Thread 1: (state = BLOCKED)
- org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation(org.eclipse.core.runtime.IPath) @bci=0, line=138 (Interpreted frame)
- org.eclipse.jdt.internal.core.search.indexing.IndexManager.addSource(org.eclipse.core.resources.IFile, org.eclipse.core.runtime.IPath, org.eclipse.jdt.internal.compiler.SourceElementParser) @bci=38, line=107 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.updateIndex(org.eclipse.jdt.internal.core.Openable, org.eclipse.core.resources.IResourceDelta) @bci=841, line=2729 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.updateCurrentDeltaAndIndex(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo) @bci=453, line=2534 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=72, line=2213 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.processResourceDelta(org.eclipse.core.resources.IResourceDelta) @bci=202, line=1894 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) @bci=522, line=2067 (Interpreted frame)
- org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) @bci=57, line=470 (Interpreted frame)
- org.eclipse.core.internal.events.NotificationManager$1.run() @bci=8, line=291 (Interpreted frame)

[Updated on: Tue, 23 July 2013 03:18]

Report message to a moderator

Re: Intermittent hanging when editing java files in eclipse [message #1072624 is a reply to message #1072559] Tue, 23 July 2013 06:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Tony,

It's probably best to open a JDT bug. It looks a little like you've
done a save, so the main thread is trying to update in a way that uses
the JDT index but a background thread is busy computing hover
information also based on the index and that thread has the indexed
locked leaving the UI thread blocked. Perhaps one thing to try is to
see if this happens only if you have the mouse cursor over a Java source
editor at the time that you save; probably you're using a keyboard
shortcut to do the save...


On 23/07/2013 5:18 AM, tony tony wrote:
> occurred again today, got another thread dump (See attached)
>
> These two threads aren't blocked and every other thread is:
>
> 1)
>
> Thread 50: (state = IN_NATIVE)
> - java.io.WinNTFileSystem.getBooleanAttributes(java.io.File) @bci=0 (Compiled frame; information may be imprecise)
> - java.io.File.isFile() @bci=20, line=829 (Interpreted frame)
> - org.eclipse.jdt.internal.core.JavaModel.getExternalTarget(org.eclipse.core.runtime.IPath, boolean) @bci=132, line=353 (Interpreted frame)
> - org.eclipse.jdt.internal.core.JavaModel.getTarget(org.eclipse.core.runtime.IPath, boolean) @bci=13, line=319 (Interpreted frame)
> - org.eclipse.jdt.internal.core.search.indexing.IndexManager.rebuildIndex(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath) @bci=2, line=572 (Interpreted frame)
> - org.eclipse.jdt.internal.core.search.indexing.IndexManager.getIndex(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath, boolean, boolean) @bci=51, line=242 (Interpreted frame)
> ..
>
>
>
> 2)
>
>
>
> Thread 1: (state = BLOCKED)
> - org.eclipse.jdt.internal.core.search.indexing.IndexManager.computeIndexLocation(org.eclipse.core.runtime.IPath) @bci=0, line=138 (Interpreted frame)
> - org.eclipse.jdt.internal.core.search.indexing.IndexManager.addSource(org.eclipse.core.resources.IFile, org.eclipse.core.runtime.IPath, org.eclipse.jdt.internal.compiler.SourceElementParser) @bci=38, line=107 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.updateIndex(org.eclipse.jdt.internal.core.Openable, org.eclipse.core.resources.IResourceDelta) @bci=841, line=2729 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.updateCurrentDeltaAndIndex(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo) @bci=453, line=2534 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=72, line=2213 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta(org.eclipse.core.resources.IResourceDelta, int, org.eclipse.jdt.internal.core.DeltaProcessor$RootInfo, org.eclipse.jdt.internal.core.DeltaProcessor$OutputsInfo) @bci=286, line=2263 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.processResourceDelta(org.eclipse.core.resources.IResourceDelta) @bci=202, line=1894 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) @bci=522, line=2067 (Interpreted frame)
> - org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(org.eclipse.core.resources.IResourceChangeEvent) @bci=57, line=470 (Interpreted frame)
> - org.eclipse.core.internal.events.NotificationManager$1.run() @bci=8, line=291 (Interpreted frame)


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse vs. JIRA - SDLC processes ?
Next Topic:Is there any forum where to consult error messages from Eclipse?
Goto Forum:
  


Current Time: Tue Apr 23 06:03:52 GMT 2024

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

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

Back to the top