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 197710

Summary: LowPerformance took 3139 ms.
Product: editor Reporter: davideconsonni <davideconsonni>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal CC: aldobrucale, danielsimonjr, davideconsonni, dds.dhawal, emiddio, epdv, franciel, ftoffoli, guscon, hantsy, javadimon, jeyoung, jkmaurya, jlux61, johnjullion, JohnMihaljevic, jyeary, KhArtNJava, klisostom, lolo_101, medeag, misterm, muellermi, nagaraju.erigi, silva_fabio, soldatov, ssanders, tawer, toben, tomaszk, tusharvjoshi, vieiro, vivekojha, williambacchi
Priority: P3 Keywords: PERFORMANCE
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178333
Attachments: nps snapshot
nps snapshot
nps snapshot
dump during and after slowness

Description davideconsonni 2011-04-13 15:01:04 UTC
This bug was originally marked as duplicate of bug 180595, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201104100401)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
davideconsonni: opening ide



Maximum slowness yet reported was 3139 ms, average is 3139
Comment 1 davideconsonni 2011-04-13 15:01:09 UTC
Created attachment 107723 [details]
nps snapshot
Comment 2 Exceptions Reporter 2011-07-04 03:40:49 UTC
Created attachment 109221 [details]
nps snapshot

at netbeans start proyect scanning
Comment 3 Peter Nabbefeld 2011-07-05 05:25:47 UTC
Created attachment 109230 [details]
nps snapshot
Comment 4 muellermi 2011-12-14 08:27:52 UTC
Today, it took 20s, see  id #551151.
I took a dump during and after this slowness.
Comment 5 muellermi 2011-12-14 08:28:00 UTC
Created attachment 114127 [details]
dump during and after slowness
Comment 6 Antonin Nebuzelsky 2011-12-28 18:15:30 UTC
-> editor
Comment 7 Miloslav Metelka 2012-06-07 08:28:36 UTC
Partially solved by 194965 (MainMenuAction.setMenu() getting info from MimeLookup is now rescheduled from AWT).
Also AlwaysEnabledAction$CheckBox.isPreferencesSelected() leads to calling EditorActionUtilities.getGlobalPreferences() which is slow since it reads from MimeLookup. I have added the call into editor's warmup.

http://hg.netbeans.org/jet-main/rev/212de82acad6
Comment 8 Quality Engineering 2012-06-08 06:11:35 UTC
Integrated into 'main-golden', will be available in build *201206080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/212de82acad6
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #197710 - LowPerformance took 3139 ms - slow EditorActionUtilities.getGlobalPreferences().