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 240894 - high CPU usage when attaching debugger
Summary: high CPU usage when attaching debugger
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-23 15:43 UTC by gholmer
Modified: 2014-01-29 15:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
self-profile snapshot (1.24 MB, application/octet-stream)
2014-01-23 15:43 UTC, gholmer
Details
NetBeans log file (messages.log) (66.26 KB, application/octet-stream)
2014-01-23 15:45 UTC, gholmer
Details
CPU monitor showing high usage during attach (42.52 KB, image/png)
2014-01-23 18:42 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2014-01-23 15:43:55 UTC
Created attachment 144298 [details]
self-profile snapshot

High CPU usage when attaching debugger to a running instance of GlassFish 4.0.
Comment 1 gholmer 2014-01-23 15:45:16 UTC
Created attachment 144299 [details]
NetBeans log file (messages.log)
Comment 2 Martin Entlicher 2014-01-23 17:40:49 UTC
We should probably optimize getCurrentThread() not to query the lookup each time to get the DVSupport.
Comment 3 gholmer 2014-01-23 18:42:17 UTC
Created attachment 144318 [details]
CPU monitor showing high usage during attach
Comment 4 Martin Entlicher 2014-01-27 16:57:04 UTC
Fixed by changeset:   271193:1421bba7578b
http://hg.netbeans.org/core-main/rev/1421bba7578b
Comment 5 Quality Engineering 2014-01-28 03:05:28 UTC
Integrated into 'main-silver', will be available in build *201401280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1421bba7578b
User: mentlicher@netbeans.org
Log: #240894: Speed up lookup and cache an instance of the current DVSupport.
Comment 6 gholmer 2014-01-29 15:42:35 UTC
Verified fixed, much faster. Thanks Martin!