Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » AJDT slooooow/hanging on clean rebuild
AJDT slooooow/hanging on clean rebuild [message #915581] Mon, 17 September 2012 11:20 Go to next message
Gerolf Scherr is currently offline Gerolf Scherr
Messages: 1
Registered: December 2009
Junior Member
Hi,

I have a workspace with two java/aspectj-projects, when I am doing a project clean/rebuild, sometimes it needs around 30 sec, sometimes it 'hangs' for more than 10 minutes, when I terminate the program and restart it, the build works.

I have done several thread dumps (approx. one per minute) of one of the hanging runs. (see attachments)

I am not sure if this is a Problem in AJDT or some kind of deadlock.

I am using juno:
Eclipse Juno, Build id: 20120614-1722

AJDT-Version:

16:58:51 Startup information:
AJDT version: 2.2.0.e42x-RELEASE-20120703-2200
AspectJ Compiler version: 1.7.0
usingVisualiser=true
usingXref=true
usingCUprovider=true
ajde.version.at.previous.startup = 2.2.0.e42x-RELEASE-20120703-2200

thanks a lot for your help.


This thread is always busy:

...
at org.eclipse.core.internal.resources.AliasManager$2.compare(AliasManager.java:1)
at java.util.TreeMap.getEntryUsingComparator(Unknown Source)
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.get(Unknown Source)
at org.eclipse.core.internal.resources.AliasManager$LocationMap.matchingResourcesDo(AliasManager.java:196)
at org.eclipse.core.internal.resources.AliasManager.findResources(AliasManager.java:446)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.findLinkedResourcesPaths(FileSystemResourceManager.java:144)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.allPathsForLocationNonCanonical(FileSystemResourceManager.java:124)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.allPathsForLocation(FileSystemResourceManager.java:62)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.allResourcesFor(FileSystemResourceManager.java:216)
at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:113)
at org.eclipse.core.internal.resources.WorkspaceRoot.findFilesForLocationURI(WorkspaceRoot.java:104)
at org.eclipse.ajdt.internal.utils.AJDTUtils.findResource(AJDTUtils.java:1217)
at org.eclipse.ajdt.internal.ui.ajde.UIMessageHandler.locationToResource(UIMessageHandler.java:385)
at org.eclipse.ajdt.internal.ui.ajde.UIMessageHandler.access$2(UIMessageHandler.java:375)
at org.eclipse.ajdt.internal.ui.ajde.UIMessageHandler$1.run(UIMessageHandler.java:259)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.ajdt.internal.ui.ajde.UIMessageHandler.showMessages(UIMessageHandler.java:347)
at org.eclipse.ajdt.internal.ui.ajde.UIMessageHandler.showOutstandingProblems(UIMessageHandler.java:210)
at org.eclipse.ajdt.internal.builder.UIBuildListener.postAJBuild(UIBuildListener.java:205)
at org.eclipse.ajdt.core.builder.AJBuilder.postCallListeners(AJBuilder.java:1551)
- locked <0x00000000e12c4580> (a java.util.ArrayList)
at org.eclipse.ajdt.core.builder.AJBuilder.postBuild(AJBuilder.java:357)
at org.eclipse.ajdt.core.builder.AJBuilder.build(AJBuilder.java:270)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


  • Attachment: 5664-6.txt
    (Size: 25.01KB, Downloaded 130 times)
  • Attachment: 5664-7.txt
    (Size: 24.08KB, Downloaded 128 times)
  • Attachment: 5664-8.txt
    (Size: 24.09KB, Downloaded 145 times)
  • Attachment: 5664-9.txt
    (Size: 24.33KB, Downloaded 117 times)
  • Attachment: 5664-10.txt
    (Size: 24.32KB, Downloaded 124 times)
Re: AJDT slooooow/hanging on clean rebuild [message #915770 is a reply to message #915581] Mon, 17 September 2012 19:40 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 368
Registered: July 2009
Senior Member
There are no deadlocking threads in any of the stack dumps you sent me, but there could still be some kind of infinite loop happening.

More likely, however, is that there are memory or disk issues. The location of the slowness is occurring after a build when all of the error markers are being added to the Eclipse resource model. This requires disk io. So, make sure that your eclipse is not running out of memory and that your heap size is set appropriately.

A quick thing to do is to go to Preferences -> General -> Show heap status. Keep an eye on the status bar to see if things are growing out of control.

Some more questions:

1. Does your project contain many linked folders?
2. How large is it?
3. What version of Eclipse and AJDT are you using?
Re: AJDT slooooow/hanging on clean rebuild [message #915771 is a reply to message #915770] Mon, 17 September 2012 19:41 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 368
Registered: July 2009
Senior Member
ps- forget that last question. You've already answered it. Smile
Previous Topic:Inconsistent workspace state with declare parents
Next Topic:AJDT 2.2.1 with STS 3.0 on Eclipse 4.2/3.8: AspectJ Load-Time Weaving Application
Goto Forum:
  


Current Time: Wed Aug 20 16:31:15 EDT 2014

Powered by FUDForum. Page generated in 0.01772 seconds