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 58654 - ModuleList.createModuleListFromSources called too often [was: IDE "hangs", 100% CPU in use]
Summary: ModuleList.createModuleListFromSources called too often [was: IDE "hangs", 10...
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE, RANDOM
Depends on:
Blocks:
 
Reported: 2005-05-06 15:19 UTC by Martin Krauskopf
Modified: 2005-09-05 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
dumpstack (10.58 KB, text/plain)
2005-05-06 15:20 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-05-06 15:19:21 UTC
FC3, JDK 1.5.0_03, custom build from today's morning (050506)

IDE "hangs" from time to time because of 100% CPU usage. It seems it is a
consequence of changes in apisupport (not sure). It didn't happen in 2-3 days
old builds.

It mostly happen when you right click a ModuleProject node (i.e. call its popup
menu) in ProjectExplorer --> 5-15s 100% cpu utilization. Second time it works
ok. After some time it happens again.

Also it happened during opening a new module.

Not sure exactly when it happens --> Random.

Attaching thread dump, which is always (almost) the same when 100% utilization
happend. At least lines around:

at_org.openide.xml.XMLUtil.parse(XMLUtil.java:289)
at_org.netbeans.modules.apisupport.project.ModuleList.parseData(ModuleList.java:484)
Comment 1 Martin Krauskopf 2005-05-06 15:20:27 UTC
Created attachment 22009 [details]
dumpstack
Comment 2 Jesse Glick 2005-05-06 18:25:38 UTC
Cf. issue #58639. May become WONTFIX.
Comment 3 Jesse Glick 2005-05-06 18:28:01 UTC
Actually, there is a problem with the caching in ModuleList...investigating.
Comment 4 Jesse Glick 2005-05-06 18:30:14 UTC
Found it, typo. Would not have made this mistake if we were using -source 1.5
for NB, sigh...
Comment 5 Jesse Glick 2005-05-06 19:29:12 UTC
committed     Up-To-Date  1.22       
apisupport/project/src/org/netbeans/modules/apisupport/project/ModuleList.java
Comment 6 Martin Krauskopf 2005-05-09 14:07:24 UTC
v