[jboss-user] [JBoss Tools (users)] - Re: High CPU on JSF auto-complete

jboden do-not-reply at jboss.com
Tue Jun 30 01:26:47 EDT 2009


I hesitate to even respond because I just don't know where to go, but it would be nice to have WTP work. I am wondering what I have that is so special that others don't have. The mouse-over shows the method details, F3 works to jump to the bean code, it's just the ctrl-space after the period when searching for the bean methods. Funny thing is, now one of my jspx files does complete quickly. 

But I used visualvm to grab some thread dumps and am including 5 below...just from the codeassist begin. Not sure where to go from here. It looks like the interesting things are in main. With visualvm running, it takes about 1 minute for eclipse to return and cpu to go normal.

It's almost always doing file IO. Any ideas of where to go from here? 

Thanks!

anonymous wrote : 
  | "main" prio=6 tid=0x00957800 nid=0x450 runnable [0x00a3d000..0x00a3fe5c]
  |    java.lang.Thread.State: RUNNABLE
  | 	at java.io.FileInputStream.open(Native Method)
  | 	at java.io.FileInputStream.(FileInputStream.java:106)
  | 	at org.eclipse.core.internal.filesystem.local.LocalFile.openInputStream(LocalFile.java:356)
  | 	at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:642)
  | 	at org.eclipse.core.internal.resources.File.getContents(File.java:298)
  | 	at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1140)
  | 	at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:635)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.getSource(SourceTypeConverter.java:612)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convertAnnotations(SourceTypeConverter.java:580)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:460)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:155)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.buildCompilationUnit(SourceTypeConverter.java:93)
  | 	at org.eclipse.jdt.internal.codeassist.impl.Engine.accept(Engine.java:83)
  | 
  | 
  | "main" prio=6 tid=0x00957800 nid=0x450 runnable [0x00a3d000..0x00a3fe5c]
  |    java.lang.Thread.State: RUNNABLE
  | 	at java.io.FileInputStream.close0(Native Method)
  | 	at java.io.FileInputStream.close(FileInputStream.java:259)
  | 	at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1150)
  | 	at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:635)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.getSource(SourceTypeConverter.java:612)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convertAnnotations(SourceTypeConverter.java:580)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:460)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:155)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.buildCompilationUnit(SourceTypeConverter.java:93)
  | 	at org.eclipse.jdt.internal.codeassist.impl.Engine.accept(Engine.java:83)
  | 
  | 
  | 
  | 
  | 
  | "main" prio=6 tid=0x00957800 nid=0x450 runnable [0x00a3d000..0x00a3fe5c]
  |    java.lang.Thread.State: RUNNABLE
  | 	at sun.nio.cs.SingleByteDecoder.decodeArrayLoop(SingleByteDecoder.java:53)
  | 	at sun.nio.cs.SingleByteDecoder.decodeLoop(SingleByteDecoder.java:83)
  | 	at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:544)
  | 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:298)
  | 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
  | 	- locked <0x30b71880> (a java.io.InputStreamReader)
  | 	at java.io.InputStreamReader.read(InputStreamReader.java:167)
  | 	at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsCharArray(Util.java:409)
  | 	at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1145)
  | 	at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:635)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.getSource(SourceTypeConverter.java:612)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convertAnnotations(SourceTypeConverter.java:580)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:460)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:155)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.buildCompilationUnit(SourceTypeConverter.java:93)
  | 	at org.eclipse.jdt.internal.codeassist.impl.Engine.accept(Engine.java:83)
  | 
  | 
  | 
  | main" prio=6 tid=0x00957800 nid=0x450 runnable [0x00a3d000..0x00a3fe5c]
  |    java.lang.Thread.State: RUNNABLE
  | 	at java.io.FileInputStream.readBytes(Native Method)
  | 	at java.io.FileInputStream.read(FileInputStream.java:199)
  | 	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
  | 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
  | 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
  | 	- locked <0x310e67d0> (a java.io.InputStreamReader)
  | 	at java.io.InputStreamReader.read(InputStreamReader.java:167)
  | 	at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsCharArray(Util.java:409)
  | 	at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1145)
  | 	at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:635)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.getSource(SourceTypeConverter.java:612)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convertAnnotations(SourceTypeConverter.java:580)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:460)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:155)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.buildCompilationUnit(SourceTypeConverter.java:93)
  | 	at org.eclipse.jdt.internal.codeassist.impl.Engine.accept(Engine.java:83)
  | 
  | 
  | 
  | 
  | 
  | "main" prio=6 tid=0x00957800 nid=0x450 runnable [0x00a3d000..0x00a3fe5c]
  |    java.lang.Thread.State: RUNNABLE
  | 	at java.io.FileInputStream.close0(Native Method)
  | 	at java.io.FileInputStream.close(FileInputStream.java:259)
  | 	at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1150)
  | 	at org.eclipse.jdt.internal.core.CompilationUnit.getContents(CompilationUnit.java:635)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.getSource(SourceTypeConverter.java:612)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convertAnnotations(SourceTypeConverter.java:580)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:460)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.convert(SourceTypeConverter.java:155)
  | 	at org.eclipse.jdt.internal.compiler.parser.SourceTypeConverter.buildCompilationUnit(SourceTypeConverter.java:93)
  | 	at org.eclipse.jdt.internal.codeassist.impl.Engine.accept(Engine.java:83)
  | 
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240904#4240904

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240904



More information about the jboss-user mailing list