Find in Path consumes too much CPU & memory

I tried to use find the word in "system" in all of .xml files in my project in Intellij 6.0.5 RC, it took more than 5 minutes to find and use more than 300MB of memory. It was much faster in 5.0.2 when performing the same operation. There is pretty much no load in disk. Most of the load seems to be CPU and memory only. Any clue?

8 comments

Seem to stuck in here forever:

"Process with progress" prio=6 tid=0x04302588 nid=0x2ddc runnable
at java.lang.Object.clone(Native Method)
at com.intellij.openapi.editor.markup.TextAttributes$Externalizable.clone(TextAttributes.java:65)
at com.intellij.openapi.editor.markup.TextAttributes.clone(TextAttributes.java:176)
at com.intellij.openapi.editor.markup.TextAttributes.merge(TextAttributes.java:33)
at com.intellij.usages.ChunkExtractor.convertAttributes(ChunkExtractor.java:195)
at com.intellij.usages.ChunkExtractor.processIntersectingRange(ChunkExtractor.java:155)
at com.intellij.usages.ChunkExtractor.createTextChunks(ChunkExtractor.java:139)
at com.intellij.usages.ChunkExtractor.extractChunks(ChunkExtractor.java:98)
at com.intellij.usages.UsageInfo2UsageAdapter.initChunks(UsageInfo2UsageAdapter.java:87)
at com.intellij.usages.UsageInfo2UsageAdapter.]]>(UsageInfo2UsageAdapter.java:82)
at com.intellij.find.impl.FindInProjectUtil$AsyncFindUsagesProcessListener2ProcessorAdapter.foundUsage(FindInProjectUtil.jav
a:2)
at com.intellij.find.impl.FindInProjectUtil.a(FindInProjectUtil.java:128)
at com.intellij.find.impl.FindInProjectUtil.access$000(FindInProjectUtil.java:91)
at com.intellij.find.impl.FindInProjectUtil$1.run(FindInProjectUtil.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:433)
at com.intellij.find.impl.FindInProjectUtil.findUsages(FindInProjectUtil.java:66)
at com.intellij.find.findInProject.FindInProjectManager$1$1.generate(FindInProjectManager.java:3)
at com.intellij.usages.impl.UsageViewManagerImpl$SearchForUsagesRunnable.searchUsages(UsageViewManagerImpl.java:235)
at com.intellij.usages.impl.UsageViewManagerImpl$SearchForUsagesRunnable.access$000(UsageViewManagerImpl.java:183)
at com.intellij.usages.impl.UsageViewManagerImpl$1.run(UsageViewManagerImpl.java:124)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:56)
at com.intellij.usages.impl.UsageViewImplUtil$1.run(UsageViewImplUtil.java:40)

"pool-3-thread-1" prio=6 tid=0x043cdbf0 nid=0x296c waiting on condition

0

Sorry... Build is #6173

0

How many words have been found?
How many files in your project?
Have you checked 'words only' in the find in path dialog?
--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Nat" <no_reply@jetbrains.com> wrote in message
news:31192889.1174945029632.JavaMail.itn@is.intellij.net...

Sorry... Build is #6173



0

Should not be more than 200 occurrences. The total numbers of files are about 7000 files while there are just 100++ xml files.

0

Could you please send me (or upload to ftp.intellij.net) the CPU snapshot
for that long Find In Path thing?

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Nat" <no_reply@jetbrains.com> wrote in message
news:27079307.1175011961003.JavaMail.itn@is.intellij.net...

Should not be more than 200 occurrences. The total numbers of files are
about 7000 files while there are just 100++ xml files.



0

I can't take the snapshot. It just hangs. I found more information though. I isolated the problem. It seems to happen when I include large xml files in the search criteria (about 1MB in size)

0

and it seems to be all in 1 line (no line break)

0

So is it a bug for handle long line data?

0

Please sign in to leave a comment.