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 228612 - 7.3 Performance Issue
Summary: 7.3 Performance Issue
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 11:18 UTC by bhulse
Modified: 2016-07-07 07:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201321


Attachments
IDE log (740.58 KB, text/plain)
2013-04-16 11:18 UTC, bhulse
Details
One of two messages.log files (72.60 KB, text/plain)
2013-04-16 12:27 UTC, bhulse
Details
Second of two messages.log files (742.25 KB, text/plain)
2013-04-16 12:28 UTC, bhulse
Details
Profiling export (225.26 KB, application/octet-stream)
2013-04-16 12:29 UTC, bhulse
Details
the npss file from the ide profile operation (2.75 MB, application/octet-stream)
2013-04-17 01:01 UTC, bhulse
Details
Screen shot of IDE with Empty Dialog (80.86 KB, image/gif)
2015-03-07 23:11 UTC, mildlyadept
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bhulse 2013-04-16 11:18:41 UTC
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?
Comment 1 bhulse 2013-04-16 11:18:46 UTC
Created attachment 133520 [details]
IDE log
Comment 2 Petr Cyhelsky 2013-04-16 11:25:57 UTC
(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)
Comment 3 bhulse 2013-04-16 12:27:56 UTC
Created attachment 133522 [details]
One of two messages.log files
Comment 4 bhulse 2013-04-16 12:28:24 UTC
Created attachment 133523 [details]
Second of two messages.log files
Comment 5 bhulse 2013-04-16 12:29:57 UTC
Created attachment 133524 [details]
Profiling export

Was doing navigate / to source or navigate / to declaration. Was getting the lengthy process popups.
Comment 6 Petr Cyhelsky 2013-04-16 13:56:00 UTC
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...
Comment 7 bhulse 2013-04-17 01:01:41 UTC
Created attachment 133535 [details]
the npss file from the ide profile operation
Comment 8 Petr Cyhelsky 2013-04-23 15:14:21 UTC
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
Comment 9 bhulse 2013-04-24 11:45:56 UTC
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.
Comment 10 bhulse 2013-04-24 12:08:34 UTC
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).
Comment 11 Jan Lahoda 2013-04-25 21:16:02 UTC
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.
Comment 12 bhulse 2013-04-26 19:18:59 UTC
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.
Comment 13 bhulse 2013-05-01 01:30:35 UTC
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.
Comment 14 Jan Lahoda 2013-07-10 07:51:05 UTC
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.
Comment 15 bhulse 2013-07-10 17:44:55 UTC
OK - I'll watch for the beta posting and let you know if it solves the problem for me.
Comment 16 mildlyadept 2015-03-07 23:11:40 UTC
Created attachment 152470 [details]
Screen shot of IDE with Empty Dialog
Comment 17 mildlyadept 2015-03-07 23:16:38 UTC
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.
Comment 18 Martin Balin 2016-07-07 07:18:57 UTC
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