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 225598

Summary: org.netbeans.modules.cnd.api.remote.ServerList.getRecords: LowPerformance took 420562 ms.
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198222
Attachments: nps snapshot

Description Alexander Simon 2013-01-31 13:23:31 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20130131-f7147183bc33)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: SunOS
Maximum slowness yet reported was 420562 ms, average is 420562
Comment 1 Alexander Simon 2013-01-31 13:23:35 UTC
Created attachment 130888 [details]
nps snapshot
Comment 2 Egor Ushakov 2013-05-14 15:37:43 UTC
RemoteServerList.getRecords in EDT is blocked by RemoteServerList.setDefaultRecord in RemoteHostActionPerformer thread, which is blocked inside AbstractPreferences.node() by Refresh-after-WwindowActivated thread that reads many files which is extremely slow
Comment 3 Maria Tishkova 2013-05-23 10:59:43 UTC
will have a look
Comment 5 Quality Engineering 2013-07-27 02:19:16 UTC
Integrated into 'main-silver', will be available in build *201307262300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/acf0d8d82b0e
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: refactoring: synchronize by a field, not "this" (fixing #225598 - ServerList.getRecords: LowPerformance)
Comment 6 Quality Engineering 2013-07-29 01:58:12 UTC
Integrated into 'main-silver', will be available in build *201307282300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/93477f916e92
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: refactoring: store default record, not index  (fixing #225598 - ServerList.getRecords: LowPerformance)