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 226782

Summary: org.netbeans.modules.glassfish.common.wizards.AddServerLocationPanel.isValid: LowPerformance took 38514 ms.
Product: serverplugins Reporter: jbalaz
Component: GlassFishAssignee: TomasKraus
Status: RESOLVED WONTFIX    
Severity: normal CC: jskrivanek
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter: 198994
Attachments: nps snapshot

Description jbalaz 2013-02-27 12:59:58 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Windows 7

User Comments:
GUEST: 1. Add new Servers
2. Choose Glassfish
3. Enter remote path e.g. \\10.10.
4. System hangs after \\1

jbalaz: Add new remote instance
1. right click to Servers 
2. select glassfish 
3. write path to server begin with \\1
 resut NB hangs



Maximum slowness yet reported was 52059 ms, average is 45286
Comment 1 jbalaz 2013-02-27 13:00:00 UTC
Created attachment 131963 [details]
nps snapshot
Comment 2 TomasKraus 2013-03-25 11:44:38 UTC
This may be related to an attempt to check folder content after every single character is typed.

There are at least 2 points where directory content is being checked:
1) ServerWizardIterator.isValid(...)
2) AddServerLocationVisualPanel.AddServerLocationVisualPanel(...)

An attempt to read non existent remote content will cause remote read timeout and cause slowness in AWT EventQueue.

Fixing this would require all file system access code in wizard to be rewritten.
Comment 3 Martin Balin 2015-09-17 13:10:12 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.