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 192886 - Netbeans takes 100% processor after opening the "Check for updates" dialog
Summary: Netbeans takes 100% processor after opening the "Check for updates" dialog
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-05 08:19 UTC by michbarsinai
Modified: 2012-11-03 02:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
profiler snapshot (37.94 KB, application/octet-stream)
2010-12-08 08:22 UTC, kvaso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michbarsinai 2010-12-05 08:19:23 UTC
Reproduction:
Choose "Check for updates" dialog
Wait for the process to not find updates.
observe that the focus on the focus on the "Finish" button blinks.
Close the dialog.
Observe that 100% of the processor goes to netbeans (on a dual core machine).

Product Version = NetBeans IDE Dev (Build 201012040001)
Operating System = Linux version 2.6.35-22-generic-pae running on i386 (ubuntu 10.10)
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03
Comment 1 Marian Mirilovic 2010-12-06 10:01:38 UTC
Could you please generate thread-dump at the time of 100% processor is occupied by NB ?
http://wiki.netbeans.org/GenerateThreadDump
Comment 2 Jaroslav Tulach 2010-12-06 10:27:03 UTC
Or rather provide profiler snapshot:
http://wiki.netbeans.org/FitnessViaPartnership
Comment 3 kvaso 2010-12-08 08:22:28 UTC
Created attachment 103717 [details]
profiler snapshot

snapshot you requested
Comment 4 kvaso 2010-12-08 08:24:57 UTC
(In reply to comment #3)
> Created an attachment (id=103717) [details]
> profiler snapshot
> 
> snapshot you requested

btw. I am runnging the latest build (201012070001), win7 64bit
Comment 5 Jaroslav Tulach 2010-12-08 12:36:48 UTC
There is ~200 invocations of 
org.netbeans.core.TimableEventQueue.tick()
most of the time is spend in collecting stack trace. I disabled that in ergonomics#9687fa99b383
Comment 6 Quality Engineering 2010-12-10 06:15:51 UTC
Integrated into 'main-golden', will be available in build *201012100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9687fa99b383
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #192886: Don't collect invocation stacktraces
Comment 7 Jaroslav Tulach 2012-11-01 09:26:17 UTC
The previous fix was not correct, this one is better: ergonomics#6a04259e1d80
Comment 8 Quality Engineering 2012-11-03 02:40:57 UTC
Integrated into 'main-golden', will be available in build *201211030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6a04259e1d80
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #192886: Really don't collect stacktraces