Issue Type: Bug Bug
Affects Versions: 3.2LATER
Assignee: Unassigned
Attachments: Screen shot 2012-08-09 at 11.45.38 AM.png
Components: eclipse
Created: 09/Aug/12 4:57 AM
Description:

Eclipse takes between 100% and 200% cpu (4 cores cpu) for no apparent reason (Eclipse does not indicate working on something).
Looking the matter up in VisualVM, it appears that the GC runs every second (see attached screenshot).

Using an util tool (http://weblogs.java.net/blog/brucechapman/archive/2008/03/hot%5Fthreads.html)I found out this :

Thread-dump
62.2% CPU Usage by Thread 'org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor'
  3/10 snapshots sharing following 8 elements
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:253)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:196)
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:370)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  3/10 snapshots sharing following 10 elements
    org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:1941)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:253)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    org.eclipse.jdt.internal.core.SourceRefElement.getSourceRange(SourceRefElement.java:218)
    org.eclipse.jdt.internal.core.ImportContainer.getSourceRange(ImportContainer.java:84)
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:375)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  2/10 snapshots sharing following 9 elements
    org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:1941)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:253)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    org.eclipse.jdt.internal.core.SourceRefElement.getSourceRange(SourceRefElement.java:218)
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:375)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  2/10 snapshots sharing following 5 elements
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:375)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)

59.5% CPU Usage by Thread 'org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor'
  2/10 snapshots sharing following 10 elements
    org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:1941)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:253)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    org.eclipse.jdt.internal.core.SourceRefElement.getSourceRange(SourceRefElement.java:218)
    org.eclipse.jdt.internal.core.ImportContainer.getSourceRange(ImportContainer.java:84)
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:375)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  2/10 snapshots sharing following 9 elements
    org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:1941)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:253)
    org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:196)
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:370)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  4/10 snapshots sharing following 5 elements
    org.eclipse.jdt.internal.core.JavaElement.getSourceElementAt(JavaElement.java:375)
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)
  2/10 snapshots sharing following 4 elements
    org.eclipse.jdt.internal.core.CompilationUnit.getElementAt(CompilationUnit.java:701)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.isJavaElementValidationRequired(JavaDirtyRegionProcessor.java:479)
    org.jboss.tools.common.validation.java.JavaDirtyRegionProcessor.endProcessing(JavaDirtyRegionProcessor.java:433)
    org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:702)

Steps to reproduce : Launch eclipse and wait 1 minute (Yes, I was able to reproduce it doing nothing at all but launch a workspace with existing projects)

Environment: Mac OS X, Eclipse 4.2 32bit, Hibernate Tools 3.6.0.M1-v20120809-0018-H1079
Project: Hibernate Tools
Labels: hibernate eclipse tools
Priority: Critical Critical
Reporter: Alexandre FILLATRE
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira