Package rename causes IDEA to hang and dump threads

Hello,

I'm using IDEA UE v 9.0.2 for a web project.

I want to rename packages, which are close to the package tree root. This causes IDEA to hang indefinitely (the frame doesn't repaint), eating completely one from two CPU cores (CPU in task manager shows 50%), with lots of thread dumps (approx one per second) in system/log directory. IDEA has to be killed from the windows task manager.

Most probably isn't memory issue, I set-Xmx1024m in idea.vmoptions, and last repainted screen showed usage of 370MB of 670 MB allocated memory.

Project has 5 modules:
- base
- base_web
- db (Hibernate)
- ejb (EJB3)
- web (Struts + Tiles)

with 1925 Java files in all modules.

Package I want to rename:

pl.com.company -> pl.com.company2

I'm also using SVN for versioning.

I'm attaching one of the thread dumps.



Attachment(s):
threadDump-20100524-150240.txt.zip
5 comments
Comment actions Permalink

I found IDEA to be quite slow for large refactorings, even with a lot of memory. This is especially bad because the UI doesn't give any feedback or progress information (IDEA-54664). I try to avoid every refactoring where the preview dialog shows more than 1000 occurrences.

0
Comment actions Permalink

I noticed that too. However, I wonder if tools such as Tortoise SVN and McAfee Antvirus, which I use, don't influence this kind of behaviour.

0
Comment actions Permalink

Interesting question!

I can imagine that McAfee has a rather large performance impact and that your devlepment directories (and cache directories!) should be excluded from the scan. I have never thought about any impact that Tortoise SVN might have, though. I hope that would be limited because directory scanning should be limited to SVN operations.

0
Comment actions Permalink

I excluded IDEA system and config directories from antivirus scan today, and see if it improves performance.

As for Tortoise - when IDEA changes lots of files, Tortoise updates its cache and it might also write to .svn entries, which also might cause IDEA to update its cache and/or idnexes accordingly, etc. But that's only speculating.

I also noticed another thing some weeks ago (I used IDEA  8.1.4). IDEA could hang on Find in project operation (on certain keywords). That shouldn't be influenced by either Tortoise or McAfee or any other external tool I can imagine, should it?

0
Comment actions Permalink

Hello Jan,

Please file a YouTrack issue at http://youtrack.jetbrains.net/ and attach
this thread dump (or better yet, a CPU snapshot) to it. The refactoring doesn't
hang - it will eventually complete, but for some reason it takes a very long
time.

I'm using IDEA UE v 9.0.2 for a web project.

I want to rename packages, which are close to the package tree root.
This causes IDEA to hang indefinitely (the frame doesn't repaint),
eating completely one from two CPU cores (CPU in task manager shows
50%), with lots of thread dumps (approx one per second) in system/log
directory. IDEA has to be killed from the windows task manager.

Most probably isn't memory issue, I set-Xmx1024m in idea.vmoptions,
and last repainted screen showed usage of 370MB of 670 MB allocated
memory.

Project has 5 modules:
- base
- base_web
- db (Hibernate)
- ejb (EJB3)
- web (Struts + Tiles)
with 1925 Java files in all modules.

I'm also using SVN for versioning.

I'm attaching one of the thread dumps.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5263817#5263817

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.