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.
Product Version = NetBeans IDE 7.3 (Build 201302132200) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.6.0_23 Runtime = Java HotSpot(TM) 64-Bit Server VM 19.0-b09 My primary usage of NetBeans right now is using GWT4NB to debug Sencha GXT code. I have been using NetBeans for this for 3 years now, from 6.9 up through 7.3. 7.3 is having severe performance issues. My Task Manager will show a 13 or 14% CPU Usage for netbeans64.exe (roughly equivalent to 100% of one of the 8 CPUs shown in Task Manager). NetBeans will freeze during operations (right mouse click in the editor, Navigate / to Source, Fix Imports, etc.), sometimes popping up the Lengthy Operation in Progress dialog. However, the NetBeans status area does not show any of the processes that will typically trigger those popups (like rescanning projects, checking for external source changes, etc). I can't completely attribute the behavior to GWT4NB running the gwt shell to connect the debugger to the host mode process. Even after I have terminated the debug process, I will continue to have this issue, with the status area completely empty of any indicator of a long-running process. I can't tell if it happens even if I never start GWT4NB because I use the GWT4NB functionality all the time. This happens "reliably" in 7.3 , but was happening "occasionally" at 7.2 (probably no more than an hour or so before I notice the 13/14% CPU usage in 7.3 - 7.2 would take a several hours before it showed up at all). Restarting the IDE resolves the issue Is there anything I can do to get diagnostic data for you when this happens?
Created attachment 133520 [details] IDE log
(In reply to comment #0) > Is there anything I can do to get diagnostic data for you when this happens? Yes, you can send us self-sampling snapshot of the ide. http://wiki.netbeans.org/FitnessViaPartnership (and please also new messages.log from the same timeframe as the snapshot)
Created attachment 133522 [details] One of two messages.log files
Created attachment 133523 [details] Second of two messages.log files
Created attachment 133524 [details] Profiling export Was doing navigate / to source or navigate / to declaration. Was getting the lengthy process popups.
Can you please send us the .npss (it has additional helpful information) you can export it via the second "export" action - the one in upper part of the self-snapshot topcomponent...
Created attachment 133535 [details] the npss file from the ide profile operation
Almost the whole time of the snapshot is spent computing hints org.netbeans.modules.java.hints.OrganizeMembers.access$000() reassigning to java/hints btw - you should run Netbeans on JDK 1.7
I did just upgrade NetBeans to Java 7 last week to see if that solved it. Unfortunately, no. Since you're seeing hints as the possible issue, I have disabled FindBugs, PMD and Checkstyle to see if that solves it. We have code cleanliness requirements to meet for our customer so we're using both PMD and Checkstyle to help cleanup the code. After disabling the style checkers, it appears to still be happening on two large classes (3600 lines and 9500 lines - both are very complex UIs), but with less frequency. If I move to smaller classes, the hang doesn't seem to happen. I will update whether I see this with any of the smaller classes over the next couple of days.
I compared the performance of 7.2 with 7.3. In 7.2, there is a pause to get the right mouse menu from the 9500 line class, but it is only 3-4 seconds. I just had an incident with that huge class with 7.3 where it took over 15 minutes to come back - a check for external changes and a background project scan got started while I was waiting for the right click menu and the background scan stalled at 33% for a few minutes and then again at 66% for a few minutes. It appears that 7.3 is doing more intense work than 7.2 in respect to the hints (my 7.2 still has PMD and Checkstyle enabled so it's doing "more" than 7.3 is right now).
Could you please go to Tools/Options/Editor/Hints/Language=Java and disable Class Structure/Organize Members? The profiler snapshot shows the time is being spent there, so this would be a good check if that is the only problem. Thanks.
That seems to have resolved it. If I turn it off, I get the right mouse menu very quickly. If I turn it back on, I'm back to the 15+ second wait for the right mouse menu to appear. I'll post more comments if I see other long pauses going forward.
Just to check in on this. I have not experienced any long lags since turning that specific hint off. I have also re-enabled all the plugins I had disabled looking for the problem. Another developer on the project complained to me about 7.3 performance and we turned it off on his system as well and he is no longer seeing problems either.
This should be fixed by this change: http://hg.netbeans.org/main-silver/diff/681bf53df1ea/java.source/src/org/netbeans/api/java/source/GeneratorUtilities.java It will be part of the upcoming NetBeans 7.4 beta - if you could verify, that would be awesome.
OK - I'll watch for the beta posting and let you know if it solves the problem for me.
Created attachment 152470 [details] Screen shot of IDE with Empty Dialog
I just experienced this issue on Netbeans: Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Updates: Updates available to version NetBeans 8.0.2 Patch 1 Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) I initiated a Source/Format session. A few moments later the Dialog popped up but was empty of content. The condition eventually cleared it self, but I didn't witness the conclusion.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss