This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104343 - Netbeans 6.0 milestone 9 very slow( lock up) when right clicking on files
Summary: Netbeans 6.0 milestone 9 very slow( lock up) when right clicking on files
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Yang Su
URL:
Keywords: PERFORMANCE
: 106552 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-19 08:02 UTC by nleck
Modified: 2007-06-21 17:21 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
3 x kill -3 output while the IDE is not responding after right clicking on directory (108.23 KB, text/plain)
2007-05-20 22:26 UTC, nleck
Details
Screen Shot of IDE before context menu has appeared. (271.91 KB, image/png)
2007-05-20 22:29 UTC, nleck
Details
Faster after I disabled all the Ruby modules. (still a little slow on first click) (74.61 KB, text/plain)
2007-05-20 22:51 UTC, nleck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nleck 2007-05-19 08:02:53 UTC
When I right click on a directory to bring up the context menu that contains a
number of sub directories ( 2000 java files in a number of packages). The IDE
locks up for a number of minutes. It does come back in the end and there is no
exception shown. The context menu appears and we continue working.
Comment 1 _ rkubacki 2007-05-20 19:23:50 UTC
Can you attach a thread dump generated during the time when IDE is displaying
the menu?

BTW: Is it local directory or a resource connect from network? 
Comment 2 nleck 2007-05-20 22:26:46 UTC
Created attachment 42580 [details]
3 x kill -3 output while the IDE is not responding after right clicking on directory
Comment 3 nleck 2007-05-20 22:29:38 UTC
Created attachment 42581 [details]
Screen Shot of IDE before context menu has appeared.
Comment 4 nleck 2007-05-20 22:31:53 UTC
PS. These are local directories. 
Comment 5 nleck 2007-05-20 22:51:05 UTC
Created attachment 42582 [details]
Faster after I disabled all the Ruby modules. (still a little slow on first click)
Comment 6 Marian Mirilovic 2007-05-21 09:19:14 UTC
Thanks for trhead-dumps, this is helpful.

I see o.n.m.ruby.RubyMimeResolver.readHeader on FolderRecognizer thread, but the
main overhead is (in my opinion) UML .. see AWT-thread :
o.n.m.uml.integration.netbeans.actions.ReverseEngineerAction.findJavaFiles
Comment 7 _ rkubacki 2007-05-21 09:46:24 UTC
Right, the deep scan of directory tree performed during action enabling is
really a killer. 
Comment 8 Viktor Lapitski 2007-06-13 20:07:48 UTC
*** Issue 106552 has been marked as a duplicate of this issue. ***
Comment 9 Sergey Petrov 2007-06-15 12:05:54 UTC
Is it uml issue? I'm working with 070608 build now without uml,ruby etc and got delayed reactions quite often (for
example I restart netbeans and tried context menu on my src of my module, and wait for 10 seconds before context menu
appears, tried package context menu next and wait may be 20 seconds)
Comment 10 Sergey Petrov 2007-06-15 12:10:36 UTC
sorry, I have uml, but don't remember when it was integrated if was (may be uml is integrated by default ant task in
nbbuild now..)
Comment 11 Yang Su 2007-06-20 00:48:47 UTC
The enabling logic used to get a list of ALL Java files from the selected nodes, in this particular case, there was a
deadlock in Node.getChildren(). Apart from the deadlock, folder deep scanning is a heavy process that should not be used
in enabling anyway. Made changes to enable/display 'Reverse Engineer' menu item on

1. project node (only one) that defines Java source groups
2. Java file nodes or folder nodes that are under Java source root folders for the same project, without deep scanning

If project node is selected, it supersedes selection of java file node or folder node, so that RE will be performed
based on selection of project source groups.
Comment 12 Andrew Korostelev 2007-06-21 17:21:20 UTC
verified in netbeans-hudson-trunk-1023-full (Build 070621)