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 191717 - Random periods of CPU over 100%
Summary: Random periods of CPU over 100%
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 189477 189488 192532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-08 03:09 UTC by matt_tricks
Modified: 2011-06-10 08:28 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace during CPU spike (11.08 KB, text/plain)
2010-11-08 15:18 UTC, matt_tricks
Details
Profiler during CPU spike (28.79 KB, application/octet-stream)
2010-11-09 00:33 UTC, matt_tricks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt_tricks 2010-11-08 03:09:05 UTC
I've had a couple of cases of the CPU suddenly going up over 100% on my 17" MacBookPro running Snow Leopard when using Netbeans 7.0M2.

It lasted for around 10 minutes I'd say.

The profiling during this period is attached.

Thanks,
//matt
Comment 1 Petr Nejedly 2010-11-08 15:12:49 UTC
There's not attachment, closing as incomplete.
Comment 2 matt_tricks 2010-11-08 15:18:19 UTC
Created attachment 102848 [details]
Stack trace during CPU spike

I did attach it originally, I will re-attach
Comment 3 matt_tricks 2010-11-09 00:33:35 UTC
Created attachment 102853 [details]
Profiler during CPU spike
Comment 4 Petr Nejedly 2010-11-09 16:17:40 UTC
This time, it was the task list to occupy your CPU for 43s (and likely cause heavy I/O).
What worries me is that most of the time was spent in the TaskComparator during (repeated, it seems) sorting of the TaskList.
Comment 5 Petr Nejedly 2010-11-09 16:19:22 UTC
The root problem might as well lie in the parsing/indexing, which ends up calling setTasks 383 times (where the Tasklist ends up re-sorting the list 952 times).
Comment 6 Tomas Stupka 2010-11-26 17:11:46 UTC
*** Bug 189488 has been marked as a duplicate of this bug. ***
Comment 7 Tomas Zezula 2010-12-01 16:08:37 UTC
*** Bug 192532 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Zezula 2010-12-01 16:10:10 UTC
Increasing to P2 as it has P2 duplicate.
Comment 9 Tomas Zezula 2010-12-01 17:41:46 UTC
Calling started|finished on callback
jet-main 4a18846ecab4
Comment 10 Quality Engineering 2010-12-03 06:20:01 UTC
Integrated into 'main-golden', will be available in build *201012030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4a18846ecab4
User: Tomas Zezula <tzezula@netbeans.org>
Log: #191717:Random periods of CPU over 100%
Comment 11 Tomas Stupka 2010-12-03 13:20:50 UTC
will store tasks in a treeset and skip sorting after each new task addition
Comment 12 Tomas Zezula 2010-12-03 13:36:52 UTC
Removing the started finished calls as you wish :-)
Jet-main 308a25f0635c
Comment 13 Tomas Stupka 2010-12-03 13:37:06 UTC
http://hg.netbeans.org/core-main/rev/fdd0c85808c7
fixed
Comment 14 Quality Engineering 2010-12-04 06:14:49 UTC
Integrated into 'main-golden', will be available in build *201012040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fdd0c85808c7
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #191717 - Random periods of CPU over 100%
Comment 15 Quality Engineering 2010-12-05 06:25:11 UTC
Integrated into 'main-golden', will be available in build *201012050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/308a25f0635c
User: Tomas Zezula <tzezula@netbeans.org>
Log: #191717:Random periods of CPU over 100%
Comment 16 Antonin Nebuzelsky 2010-12-07 14:34:30 UTC
*** Bug 192840 has been marked as a duplicate of this bug. ***
Comment 17 Tomas Stupka 2011-06-10 08:28:58 UTC
*** Bug 189477 has been marked as a duplicate of this bug. ***