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 181231 - LayerUtils.currentify is too expensive
Summary: LayerUtils.currentify is too expensive
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
: 175557 187302 (view as bug list)
Depends on:
Blocks: 191678
  Show dependency tree
 
Reported: 2010-02-25 11:38 UTC by vieiro
Modified: 2011-04-21 20:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
First stack trace (2.17 KB, text/plain)
2010-02-25 11:38 UTC, vieiro
Details
Second stack trace (1.70 KB, text/plain)
2010-02-25 11:39 UTC, vieiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2010-02-25 11:38:54 UTC
Created attachment 94525 [details]
First stack trace

I noticed a very high CPU usage during a minute or so. I *think* this happens some times when having the "layer.xml" file expanded (layer.xml in context). I haven't noticed this on other situations.

I attached to the PID using jconsole and I took photos of two stack traces. I think these stack traces are the cause of the problem because the thread disappears after a minute or so and the CPU goes down again.

This is for

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: SunOS version 5.11 running on x86; UTF-8; en_US (nb)
Userdir: /export/home/antonio/.netbeans/6.8
Comment 1 vieiro 2010-02-25 11:39:24 UTC
Created attachment 94526 [details]
Second stack trace
Comment 2 Jesse Glick 2010-03-11 12:54:50 UTC
Should make the simplifying assumption that resources can be found in the same source root as the layer. Won't work for all modules but will work for most.
Comment 3 Jesse Glick 2010-03-11 13:01:31 UTC
*** Bug 175557 has been marked as a duplicate of this bug. ***
Comment 4 Jesse Glick 2010-05-04 21:55:31 UTC
Not sure yet what ill effects would result from searching only within the same module. Probably too risky for 6.9.
Comment 5 Jesse Glick 2010-06-10 13:44:38 UTC
*** Bug 187302 has been marked as a duplicate of this bug. ***
Comment 6 Jesse Glick 2010-06-16 01:46:54 UTC
core-main #5b1d1898fe90
Comment 7 Quality Engineering 2010-06-17 03:19:39 UTC
Integrated into 'main-golden', will be available in build *201006170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5b1d1898fe90
User: Jesse Glick <jglick@netbeans.org>
Log: #181231: LayerUtils.currentify is too expensive