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 212864 - The task window raised my CPU to %100 over the whole session
Summary: The task window raised my CPU to %100 over the whole session
Status: RESOLVED DUPLICATE of bug 205773
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 7.1.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 00:16 UTC by michaelbn
Modified: 2012-05-24 10:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profile of class editing when there is no filter on the TODO tasks window (1.12 MB, application/octet-stream)
2012-05-23 10:15 UTC, michaelbn
Details
Profile of class editing when there is a filter on the TODO tasks window (488.59 KB, application/octet-stream)
2012-05-23 10:16 UTC, michaelbn
Details
Without filters on the tasks window - client 7.1.2 (1.25 MB, application/octet-stream)
2012-05-24 10:08 UTC, michaelbn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michaelbn 2012-05-23 00:16:19 UTC
I am developing on Zend Framework2.

Over the last few weeks the CPU reached %100 on every trivial task (even mouse point). I disabled almost all plugins but that was useless. I also tried to delete the cache.

What helped at the end, was to put a filter on the TODO task list to ignore ZF2 library. Immediately the CPU went to sane levels and the IDE response was instant.

ZF2 library size is 189M with git and has many @TODO

I am working on:
Intel I7, 120GB SSD, 8GB RAM with Fedora16 64bit

Product Version: NetBeans IDE 7.1.1 (Build 201203012225)
Java: 1.7.0_b147-icedtea; OpenJDK 64-Bit Server VM 22.0-b10
System: Linux version 3.3.6-3.fc16.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 1 michaelbn 2012-05-23 00:24:00 UTC
One more important note.

The Tasks window was minimized in the IDE layout. I didn't really used it.
Comment 2 Petr Cyhelsky 2012-05-23 07:51:22 UTC
please attach the self-profiling snapshot taken during the duration of the problem - see http://wiki.netbeans.org/FaqProfileMeNow
Comment 3 michaelbn 2012-05-23 10:15:47 UTC
Created attachment 119766 [details]
Profile of class editing when there is no filter on the TODO tasks window
Comment 4 michaelbn 2012-05-23 10:16:55 UTC
Created attachment 119767 [details]
Profile of class editing when there is a filter on the TODO tasks window
Comment 5 michaelbn 2012-05-23 10:17:36 UTC
As for your request I attached 2 files.

I tried as much as possible to repeat the same routine in both profiles ( Editing class name and some functions delete )
Comment 6 Tomas Mysik 2012-05-23 11:24:48 UTC
Will look at it, thanks.
Comment 7 Tomas Mysik 2012-05-23 11:37:19 UTC
Seems to be a problem in the tasklist itself - there are many calls to TaskList.clear(), TaskList.fireTasksAdded() etc.

Please evaluate, thanks.
Comment 8 Jan Peska 2012-05-24 08:05:20 UTC

*** This bug has been marked as a duplicate of bug 205773 ***
Comment 9 michaelbn 2012-05-24 10:08:15 UTC
Created attachment 119806 [details]
Without filters on the tasks window - client 7.1.2

Edited a array. replaced variable and such
Comment 10 michaelbn 2012-05-24 10:12:22 UTC
With the knowledge of the fix in 7.1.2 I went straight and installed the latest.

While it seems there is a slight improvement, the performance where very poor.

I edited an array with 20 elements and Netbeans paused for seconds (high CPU) when I edited or deleted empty spaces.

This was resolved when I activated a filter on the tasks window that exclude the big library.

I attached a new profile
Comment 11 Jan Peska 2012-05-24 10:21:14 UTC
> With the knowledge of the fix in 7.1.2 I went straight and installed the latest.

This fix was not part of the 7.1.2 release, it will be in 7.2, you can try a beta version.

*** This bug has been marked as a duplicate of bug 205773 ***