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 239576 - Slowly on the URL field when creating a new FTP server for PHP projects
Summary: Slowly on the URL field when creating a new FTP server for PHP projects
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 236375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-17 20:55 UTC by joao_neto
Modified: 2014-01-16 18:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.83 KB, text/plain)
2013-12-17 20:55 UTC, joao_neto
Details
Arquivo .npss anexado do NetBeans (212.57 KB, application/x-npss)
2013-12-18 17:13 UTC, joao_neto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joao_neto 2013-12-17 20:55:48 UTC
Product Version = NetBeans IDE Dev (Build 201312170002)
Operating System = Linux version 3.6.11-7.fc16.x86_64 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

When i create a new FTP server to create a project in Netbeans, like:

File -> New Project -> PHP From Remote Server -> Next -> Next And then:
# Manage remote servers
# Add new remote server
On "Host name" input, the system is so slowly when i type the keys. Apparently, i think this bug is on the algorithm to validate the URL and show a warning on the window.
This slowness is always happening on this window.
Comment 1 joao_neto 2013-12-17 20:55:51 UTC
Created attachment 143272 [details]
IDE log
Comment 2 Tomas Mysik 2013-12-18 07:23:38 UTC
IDE log is useless in this case, you should report it as a slowness report directly from the IDE so profiler snapshot [1] is attached (why did not do it that way? Once this happens to you, just open Notifications window and select the slowness report; or you can do it manually, see [1]).

Thanks.
[1] http://wiki.netbeans.org/FaqProfileMeNow
[2] Window > IDE Tools > Notifications
Comment 3 joao_neto 2013-12-18 17:13:49 UTC
Created attachment 143311 [details]
Arquivo .npss anexado do NetBeans

arquivo .npss
Comment 4 joao_neto 2013-12-18 17:15:32 UTC
Ok!

I attached the log profiler, i start the profile and proceed with the steps:
-> File => New Project
-> PHP -> From Remote Server
-> Manage Web Servers -> Add -> Tried to type the server URL
close window, close profile.
Comment 5 Tomas Mysik 2013-12-20 07:45:44 UTC
From the snapshot: NetBeans is validating proxy and this takes time, at least in your case. However, this validation is done outside of the UI thread [1] so you should see some dialog/progress with "validating proxy" (or similar) message. IMHO, there is nothing to be fixed in this issue...

Thanks for reporting.
[1] using ProgressUtils.runOffEventDispatchThread()
Comment 6 Tomas Mysik 2014-01-02 11:11:56 UTC
*** Bug 236375 has been marked as a duplicate of this bug. ***
Comment 7 mmolda 2014-01-14 15:05:47 UTC
Same behaviour here. Without proxy it is working normal. But it is getting really slow when the proxy is set.

Looks like it checks the proxy for a few seconds on every key stroke.

Thanks for looking at it :)
Comment 8 Tomas Mysik 2014-01-15 09:46:07 UTC
This is IMHO the best we can do. Thanks.

http://hg.netbeans.org/web-main/rev/5267e41d2244
Comment 9 Quality Engineering 2014-01-16 02:43:27 UTC
Integrated into 'main-silver', will be available in build *201401160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5267e41d2244
User: Tomas Mysik <tmysik@netbeans.org>
Log: #239576 - Slowly on the URL field when creating a new FTP server for PHP projects
Comment 10 mmolda 2014-01-16 18:49:28 UTC
It is much faster now, I don't see any slowness now, 
thanks Tomas!

Product Version: NetBeans IDE Dev (Build 201401160001)
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-b17
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)