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.
Created attachment 123816 [details] Profiling data I have a large C++ project, which outputs a .dll. The build and run steps are .bat files (both finish under 2-3 seconds). However, there's a big pause between the build and run steps (1.nps), and after the run step (2.nps). CPU usage is either very low, or very high during these pauses (this behavior is random). It looks like most time is spent in CLI Requests Server and W32 File Monitor, with org.netbeans.api.extexecution.ExecutionService coming in as the second. I've attached profiling data taken during these pauses.
most of the time seems to be spent in: org.netbeans.modules.cnd.makeproject.MakeLogicalViewProvider.refreshBrokenItems() reassigning to cnd
Raising priority to P2. This problem can stack, causing 100% CPU usage across all cores, and a very sluggish IDE, remaining so for several minutes (or until an IDE restart).
please provide thread dump of: "100% CPU usage across all cores for several minutes"
fyi, thread dump and profile snapshot http://wiki.netbeans.org/GenerateThreadDump#Profile_Me_Now will help a lot
Created attachment 127211 [details] Profiling data of 100% CPU usage
It took a while due to the random nature of the bug, but I could finally take some profiling data when NB was using 100% CPU across all cores (checked with Process Explorer: netbeans64.exe was using the processor, kernel mode usage was negligible).
Please, provide your version info (Help->About) Thanks!
Waiting for user's info
Product Version: NetBeans IDE 7.2 (Build 201207171143) Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09 System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb) Help->Check for updates says I'm up to date.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/f904ebb91983
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f904ebb91983 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #217728 Unnecessary wait and CPU usage building a C++ project
*** Bug 207807 has been marked as a duplicate of this bug. ***
Created attachment 132149 [details] Profiling data of Netbeans 7.3 Profiling data of the same issue in Netbeans 7.3
The issue is still present in Netbeans 7.3, although it has a lesser impact now. Attached profiling data. Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03 System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)
(In reply to comment #14) > The issue is still present in Netbeans 7.3, although it has a lesser impact > now. > Apparently, rest problem is a duplicate of bug #201761.
This issue itself was fixed. I've created new one about your current findings #227376