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 107753 - Profiler consumes vast quantities of CPU in setup dialog
Summary: Profiler consumes vast quantities of CPU in setup dialog
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks:
 
Reported: 2007-06-22 01:45 UTC by Jesse Glick
Modified: 2007-09-10 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Some thread dumps (157.18 KB, text/plain)
2007-06-22 01:47 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-06-22 01:45:43 UTC
070620, Linux, 2Gb RAM. I open nbbuild (as main), openide{fs,masterfs}, projects/{queries,projectapi},
java/{project,j2seproject}, ant/project. I select Profile Main Project, accept JDK 6 as the platform, and try to choose
different options from Profile CPU such as Profile Entire Application, Profile Projects, etc. After each selection, the
IDE freezes at 100% CPU for a couple of minutes. I took a look at the custom filter dialog and saw to my horror that it
had entered _every package in the IDE's 500+ modules_, or 3112 packages in total. Basically I have found the profiler
completely unusable for my work.
Comment 1 Jesse Glick 2007-06-22 01:47:49 UTC
Created attachment 44233 [details]
Some thread dumps
Comment 2 Jesse Glick 2007-06-22 01:48:45 UTC
Marking with THREAD since besides the extreme slowness, a major part of the problem is that all this computation happens
in EQ with no progress indication or way to cancel.
Comment 3 Jiri Sedlacek 2007-06-22 08:02:35 UTC
Looks similar to your Issue 81765, just the thread dump is a bit different.
Comment 4 Jesse Glick 2007-06-22 19:03:25 UTC
Could be dupe. In issue #81765 it is said that "computing of java source roots was improved" but it is still unusable, I
think.
Comment 5 Jiri Sedlacek 2007-07-12 16:32:41 UTC
Projects, subprojects, source roots and all packages are now processed lazily after selecting profiling task & settings 
in separate thread.

Fixed for Beta1.
Comment 6 Alexander Kouznetsov 2007-09-08 11:40:56 UTC
jglick, could you please verify this issue?
Comment 7 Jesse Glick 2007-09-08 16:40:10 UTC
Open ide/allmodules in a dev build (basic config), JDK 6, wait for CP scanning to end. Profile Main Project. Click Part
of Application, Filter = Profile Project & Subprojects Classes, click Show filter value. As expected, shows "Computing
filter..." and disk starts thrashing. After clicking Close button, task is not cancelled, which is annoying, but it does
finish after a couple minutes. Clicking Show filter value again displays a lot of packages in a JList, which looks OK. I
can only presume these are all module packages - the list is not apparently sorted so I cannot find anything in particular.
Comment 8 Jiri Sedlacek 2007-09-10 09:41:10 UTC
Thanks for your feedback! List of packages is now alphabetically sorted, cancelling the dialog - stopping searching for 
packages - is tracked by Issue 115126.