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.
Created attachment 150336 [details] FaqLogMessagesFile Hi all! we encountered a really big problem with ftp upload: 220 (vsFTPd 3.0.2) USER ##### 331 Please specify the password. PASS ****** 230 Login successful. TYPE I 200 Switching to Binary mode. CWD / 250 Directory successfully changed. PWD 257 "/" CWD /dist/classes/Template 250 Directory successfully changed. PASV 227 Entering Passive Mode. STOR UserProfileTemplate.class.php.new 150 Ok to send data. 226 Transfer complete. RNFR UserProfileTemplate.class.php.new 350 Ready for RNTO. RNTO UserProfileTemplate.class.php 250 Rename successful. QUIT 221 Goodbye. Summary ==================== Succeeded: file dist/classes/Template/UserProfileTemplate.class.php Runtime: 37 s, processed: 1 file(s), 44,423 KB as you can see, it takes 37secs to upload only 44KB! Obviously this is just an example, sometimes it takes less time, sometimes more, sometimes with bigger files the upload is stopped after 50-60secs saying that is all ok, but the uploaded file is incomplete. We don't have proxies and the same upload (same file and same configuration) with filezilla takes only 2-3 secs, so I guess this isn't a connection issue. we usually upload single file, after some modification, but the problem also occurs uploading multiple files. We also tried to upload enabling "upload files directly" but nothing had changed. 90% of the time is taken after the printing of "150 Ok to send data." Do you have any suggestions? thank you in advance, Roberto!
There is no error in the attached IDE log. Is it slow for all your PHP projects? All your remote servers? Is it slow only for upload or for download as well? Are you sure that this is not a problem of your internet connection? Can you try using Oracle JDK 8? BTW NetBeans uses Apache Commons Net library for FTP download/upload so such a problem should have then a plenty of people all around the world I guess (I found e.g. [1] but no answer). Please, create a profiler snapshot [2] and attach it here. Start profiling just before upload and stop it right the upload finishes. Simply reopen this issue, thanks. [1] http://stackoverflow.com/questions/17221714/apache-commons-net-slow-ftp-upload [2] http://wiki.netbeans.org/FaqProfileMeNow
One more idea - could you please try another _Java_ FTP client? It could be also Java issue... Thanks.
Created attachment 150418 [details] profiler snapshot
Hi, sorry it took me really long to answer... by the way, the ftp is slow for all our project, but only uploading, download is normal. I've installed jdk 8 and nothing changed (I've also modified netbeans.conf in order to start with the right java version) and, moreover, I'm sure that this isn't a connection problem: I've tried with filezilla, eclipse and with jftp and the upload is normal, so I guess that the problem is not realated to java or to the connection, it only appens with netbeans. I've attached the profiler snapshot, hoping that it will help :) Thank you, Roberto
Created attachment 150419 [details] new message log
Thanks a lot, I will look at it.
Hi! Any news? :)
Not yet, sorry. Currently, we are feature phase; bugfixing phase will come later. Perhaps you can ty some old(er) NetBeans just to verify that the problem was always there. Thanks.
ok! I'll try, thanks :)
One more question - does it happen with all FTP servers? Ot is it slow just for one specific server? Thanks.
From profiler snapshot, the time is spent in java.io.FileInputStream.read0[native]() 85.1067 20 008 ms (85,1%) 20 008 ms which means that reading of the file takes all this time. Is the file on your local disc? Or is it some network share? I will investigate more... Thanks.
(In reply to Tomas Mysik from comment #10) > One more question - does it happen with all FTP servers? Ot is it slow just > for one specific server? This is irrelevant now, the reading of the file is slow, not uploading itself. Thanks.
I guess I found it. Should be fixed now, please verify. Thanks a lot and sorry for inconveniences! http://hg.netbeans.org/web-main/rev/f6b9bf1ba66e
@vriha: Láďo, if you want to verify it, try to upload files from some network share/drive (local files should always be fast). Thanks.
Hi! I can confirm that the file are from a NAS (d-link share center) and that uploading local file goes normal. I've tried the lastest nightly, but nothing changed, is it normal? Thank you really much and have a nice day!
Integrated into 'main-silver', will be available in build *201505140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f6b9bf1ba66e User: Tomas Mysik <tmysik@netbeans.org> Log: #248481 - Really slow ftp upload
(In reply to knives214 from comment #15) > Hi! I can confirm that the file are from a NAS (d-link share center) and > that uploading local file goes normal. So my suspicion was right, that is fine! :) > I've tried the lastest nightly, but nothing changed, is it normal? Try a newer one, see the previous comment about integration. Or try directly our dev build [1], use the ZIP file. In any case, please let us know if it helps or not. Thanks! [1] http://deadlock.netbeans.org/job/web-main/
BTW if it does not help, please create a new profiler snapshot. Thanks!
I've tested the latest build and it work fine! thank you very much for your help :)
Thanks a lot for your verification!