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 188022

Summary: AuxiliaryConfigBasedPreferencesProvider should store keys asynch
Product: projects Reporter: davti <davti>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: PERFORMANCE, THREAD
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170954
Attachments: nps snapshot

Description davti 2010-06-24 07:13:22 UTC
Build: NetBeans IDE 6.9 (Build 201006101454)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP
Maximum slowness yet reported was 63241 ms, average is 61155
Comment 1 davti 2010-06-24 07:13:27 UTC
Created attachment 100373 [details]
nps snapshot
Comment 2 Jesse Glick 2010-06-24 14:45:09 UTC
SQE asks to store a prefs key in a project, which then waits for the project lock. This is held for a long time by a Java EE project's view, parsing some Glassfish config file; the Windows file system is taking a very long time to respond, perhaps due to lack of working memory.

The root slowdown is probably just the usual crappy Windows I/O performance, but the blocking of the GUI is due to AuxiliaryConfigBasedPreferencesProvider trying to write out new values immediately. Unless flush() is called, it is permitted to do so asynchronously, though this could result in some race conditions.
Comment 3 Petr Cyhelsky 2012-06-01 08:56:07 UTC
last report is 2 years old - seems to be fixed now