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 131786 - Building of suite slow when many files in NB install dir
Summary: Building of suite slow when many files in NB install dir
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-04-02 05:15 UTC by calhoun
Modified: 2008-04-04 19:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ant output when set to verbose logging (5.67 KB, text/plain)
2008-04-04 19:09 UTC, calhoun
Details
Contents of NetBeans install directory when problem occurs (2.27 KB, text/plain)
2008-04-04 19:11 UTC, calhoun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description calhoun 2008-04-02 05:15:07 UTC
When many files are in the NetBeans installation directory (e.g., C:\Program Files\NetBeans6 on Windows) the module
suite build process takes a long time (5 minutes or more) doing seemingly nothing. I uncompressed the NB source zip into
the install dir, enabled verbose Ant logging, and see many messages like "No module in: <filename>" for the files in the
install directory (now including the source, hence the slowdown). 

The "build" target in the harness suite.xml calls the custom createmodulexml Ant task which I think must call
org.netbeans.nbbuild.ModuleSelector. It seems the createmodulexml task (org.netbeans.nbbuild.CreateModuleXML) or
suite.xml "build" target should be more intelligent in excluding files that aren't required in the build even though
they may be located in the NB installation directory.
Comment 1 novakm 2008-04-03 09:15:03 UTC
Reassigning to core for evaluation
Comment 2 Jesse Glick 2008-04-04 18:07:56 UTC
Never observed such a problem. If you can reproduce, please use thread dumps and/or a profiler to see what actually is
hanging or consuming CPU.
Comment 3 calhoun 2008-04-04 19:09:52 UTC
Created attachment 59702 [details]
Ant output when set to verbose logging
Comment 4 calhoun 2008-04-04 19:11:42 UTC
Created attachment 59703 [details]
Contents of NetBeans install directory when problem occurs
Comment 5 Jesse Glick 2008-04-04 19:18:46 UTC
Ah, you have the sources INSIDE the installation dir. Don't do that. Put them somewhere else.
Comment 6 calhoun 2008-04-04 19:25:08 UTC
Please see the attachments, "ant_verbose_output.txt" and "netbeans_directory_list.txt". I was able to reproduce this (on
the same machine w/the same installation of NB) by simply moving the NB source, platform source directories and 2
original downloaded zip files to the NB directory, and performing a clean and build of my module suite. The process of
java.exe spawned by Netbeans (nbexec.exe) is taking the most CPU, though it's only 20-30% at a given time. I think the
activity is more disk-related because it's scanning thousands of files.

I did a simple test:
1. With all the src files in my NB directory, build takes 5 minutes 30 seconds.
2. Without the extra source files, build takes 1 minute 30 seconds.