Community
Participate
Working Groups
Typing the name of a new class in the New Java Class dialog is slow using ftp. If I do this using ssh/dstore it runs very smoothly. Looking at the Console log it looks like we are doing a CWD & LIST command for every character typed. Steps to Reproduce: 1. Create a Java Project. 2. Remove the source folder. 3. Create a new folder linked to an ftp system. 4. Make the new folder a source folder. 5. Right click on the folder. Select New -> Class. 6. Type in the name of a class. The name will slowly appear. Console Log from typing the class name TestRSE: NOOP 200 Zzz... CWD /public_html/school/4213/assignment1 250 OK. Current directory is /public_html/school/4213/assignment1 PORT 9,26,148,193,4,5 200 PORT command successful LIST 150 Connecting to port 8047 226-Options: -a -l 226 6 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,6 200 PORT command successful LIST 150 Connecting to port 8505 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,7 200 PORT command successful LIST 150 Connecting to port 8528 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,8 200 PORT command successful LIST 150 Connecting to port 8543 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,9 200 PORT command successful LIST 150 Connecting to port 8561 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,10 200 PORT command successful LIST 150 Connecting to port 8573 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,11 200 PORT command successful LIST 150 Connecting to port 8585 226-Options: -a -l 226 9 matches total NOOP 200 Zzz... CWD /public_html/school/4213/assignment1/src 250 OK. Current directory is /public_html/school/4213/assignment1/src PORT 9,26,148,193,4,12 200 PORT command successful LIST 150 Connecting to port 8598 226-Options: -a -l 226 9 matches total -----------Enter bugs above this line----------- TM 2.0.1 Testing installation : eclipse-SDK-3.3 RSE install : RSE 2.0.1 java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
Looking at the log, there are indeed directory list queries of the same directory in quick succession. Looking at the code in FTPService.java, we should be caching the result of a previous FTP LIST query and re-use it when the next query is the same and not too much time has passed. Javier can you check why this caching fails?