commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [vfs] FTP extremely slow compared to SFTP
Date Tue, 11 Dec 2007 11:12:21 GMT
I don't know anything about VFS, but I do know that there are some systems
that run a login script when FTP sessions start. If this takes a while to
run, then it could perhaps explain the discrepancy if SFTP sessions run a
different script - or none at all.

Just a thought.

Perhaps it would be worth comparing command-line FTP and SFTP timings.

On 11/12/2007, Jörg Schaible <Joerg.Schaible@elsag-solutions.com> wrote:
>
> Hi Mark,
>
> Mark Fortner wrote:
> > Jörg,
> > Do you have any code snippets for these examples?
>
> Well, it is a bit more complex. Some files in the target directory are
> opened and read again, but this does not explain the numbers below. The only
> difference is the initialization of the FileSystem with a SFTP URL instead
> of one with FTP. Since SFTP adds overhead on top of FTP the only conclusion
> is, that the FTP implementation in use is horrible slow.
>
> - Jörg
>
> >
> > Mark
> >
> > On Dec 10, 2007 5:59 AM, Jörg Schaible
> > <Joerg.Schaible@elsag-solutions.com>
> > wrote:
> >
> >> Hi,
> >>
> >> can somebody explain the following numbers - especially why FTP is
> >> that dead slow compared to SFTP handling a lot of files? I measure a
> >> simple copy action of a directory containing some few files:
> >>
> >> ========================================
> >> FTP
> >> ========================================
> >> * Initial Run
> >>  - Exporter.............................................. 8252.0 ms
> >> * Single File (25kb)
> >>  - Exporter.............................................. 8021.0 ms
> >> * Single File (25000kb)
> >>  - Exporter.............................................. 11437.0 ms
> >> * Single File (50000kb)
> >>  - Exporter.............................................. 16043.0 ms
> >> * Single Directory (with 10 files of 1kb)
> >>  - Exporter.............................................. 47859.0 ms
> >> * Single Directory (with 25 files of 1kb)
> >>  - Exporter.............................................. 113964.0 ms
> >> * Single Directory (with 50 files of 1kb)
> >>  - Exporter.............................................. 224312.0 ms
> >>
> >> ========================================
> >> SFTP
> >> ========================================
> >> * Initial Run
> >>  - Exporter.............................................. 1252.0 ms
> >> * Single File (25kb)
> >>  - Exporter.............................................. 921.0 ms *
> >> Single File (25000kb)
> >>  - Exporter.............................................. 14952.0 ms
> >> * Single File (50000kb)
> >>  - Exporter.............................................. 24885.0 ms
> >> * Single Directory (with 10 files of 1kb)
> >>  - Exporter.............................................. 601.0 ms
> >> * Single Directory (with 25 files of 1kb)
> >>  - Exporter.............................................. 922.0 ms
> >> * Single Directory (with 50 files of 1kb)
> >>  - Exporter.............................................. 1552.0 ms
> >>
> >>
> >> Any explanation or - even better - suggestions to improve FTP speed?
> >>
> >> - Jörg
> >>
> >>
> > ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: user-help@commons.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message