[JSch-users] Enormous traffic when uploading file to non-empty folder

2016-08-24 Thread Milano Nicolum
OK, now I feel embarassed and stupid for not noticing earlier that in my code there is hidden the *ChannelSftp.ls* call. No idea why. It's been there since beginning of the app. It is called once when new file abstraction is requested and once for any other operation (e.g. requesting an OutputStrea

Re: [JSch-users] Enormous traffic when uploading file to non-empty folder

2016-08-24 Thread Lothar Kimmeringer
Am 24.08.2016 um 11:57 schrieb Milano Nicolum: > Another symptom of the issue is that listing the directory content via sftp.ls > sftp.ls(sftpAbsolutePath) call takes approx. 100 seconds, tcpdump says it > transfers about 1555 KB server -> client and 58KB client -> server. > > If I connect to t

[JSch-users] Enormous traffic when uploading file to non-empty folder

2016-08-24 Thread Milano Nicolum
Another symptom of the issue is that listing the directory content via sftp.ls(sftpAbsolutePath) call takes approx. 100 seconds, tcpdump says it transfers about 1555 KB server -> client and 58KB client -> server. If I connect to the server via SSH (using putty), run the ll command in console and r

[JSch-users] Enormous traffic when uploading file to non-empty folder

2016-08-24 Thread Milano Nicolum
After further investigation I tested two scenarios of uploading a file to the SFTP server. In scenario one I only had a handful of files in the upload directory, in the second scenario there were 6400 tiny files more. *Scenario 1:* lstat takes about 1 sec to execute. Tcpdump shows 907020 bytes tra