History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16472
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Mark Kimmerly
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

After successfully running a "Replace in Path" operation, IDEA continues to suck up 50%-60% of the CPU and it's mem usage goes from ~185mb to ~350mb

Created: 21 Nov 07 21:33   Updated: 22 Nov 07 03:30
Component/s: Find, Replace, Find Usages

File Attachments: 1. Zip Archive 7531_mkimmerly_21.11.2007_16.20.23.zip (1.71 Mb)

Environment: Dell Optiplex 320, dual 2.80GHz processors, 1.96GB RAM, Windows XP SP2, JRE 1.6.0_03, JDK 1.6.0

Build: 7,531
Severity: High


 Description  « Hide
After successfully running a "Replace in Path" operation, IDEA continues to suck up 50%-60% of the CPU and it's mem usage goes from ~185mb to ~350mb. At this point, IDEA is extremely unresponsive, and it takes anywhere from 5 to 10 minutes for it to close after clicking the close button.

Normally this wouldn't be a critical issue, since killing/restarting idea sets it back to normal, but I'm on a project now that needs a lot of cleanup including renaming classes and variables where "Replace in Path" is highly valuable.



 All   Comments   Work Log   Change History      Sort Order:
Mark Kimmerly - 21 Nov 07 21:43
Note that selecting "All Files" in the prompt avoids the problem. So far, the problem only appears when selecting "Replace" on the prompt dialog for all instances of the word being replaced.

Dmitry Jemerov - 21 Nov 07 21:45
Could you please take a thread dump or a CPU snapshot while IDEA is consuming the CPU after the operation?

Mark Kimmerly - 22 Nov 07 01:39
Sure. How do I generate one?


Taras Tielkes - 22 Nov 07 03:08
Link in above comment describes taking thread dumps.

For taking CPU snapshots, see http://support.jetbrains.com/kb/entry!default.jspa?categoryID=5&externalID=192&fromSearchPage=true


Mark Kimmerly - 22 Nov 07 03:30
Here is a CPU snapshot, started just before the "Replace in Path" operation, in which only 1 occurrence is found in 1 file (Not a requirement to repro - just makes it faster). After the replacement is finished, I waited about 4 to 5 seconds, watching idea.exe take 50% of the CPU the memory usage climb from ~188mb to over 220mb before stopping the snapshot recording.