You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by bahar ertik <ba...@gmail.com> on 2011/08/10 09:50:52 UTC

find out the transfer rate

Hi,

I am trying to transfer files from my server to a client using ftp in java
and this works without any problems.
My question is: Is there any way to find out the transfer rate, MB/s, of the
transfer?

Best Regards

Re: find out the transfer rate

Posted by David Latorre <dv...@gmail.com>.
If you are doing what Miroslav said, I'd rather believe that it is your
'manual calculation' which is wrong. This should be with files of some size,
otherwise the difference might be related to different starting points
(e.g., with some firewalls that open/close ports automatically -but slowly-,
 passive mode can have quite different results for small files).

Why don't you check your transfer rate against the one that lftp or
filezilla report?






2011/8/10 Miroslav Pokorny <mi...@gmail.com>

> Dividing bits over seconds is quite simple, each xfer is not going to be
> exactly the same even if you send /get the same file from/to the same
> server. For whatever reason your xfer rates seem reasonable, so they are
> probably correct.
>
> On Wed, Aug 10, 2011 at 8:52 PM, bahar ertik <ba...@gmail.com>
> wrote:
>
> > I have tried that but this doesn't give the correct transfer rate.
> Because
> > the result I get is far away from the result I get when I do it manuallt,
> > stepwise!
> > Manually done the transfer rate for the put is 17.09 MB/sec and get 87.83
> > MB/sec.
> > Recording the time at start and end gives the result  put 11.11 MB/sec
> and
> > get 33 MB/sec.
> >
> > On Wed, Aug 10, 2011 at 10:45 AM, Miroslav Pokorny <
> > miroslav.pokorny@gmail.com> wrote:
> >
> > > Record the time at the start and end of the operation and divide tht
> with
> > > the file size.
> > >
> > > On Wed, Aug 10, 2011 at 5:50 PM, bahar ertik <ba...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am trying to transfer files from my server to a client using ftp in
> > > java
> > > > and this works without any problems.
> > > > My question is: Is there any way to find out the transfer rate, MB/s,
> > of
> > > > the
> > > > transfer?
> > > >
> > > > Best Regards
> > > >
> > >
> > >
> > >
> > > --
> > > mP
> > >
> >
>
>
>
> --
> mP
>

Re: find out the transfer rate

Posted by Miroslav Pokorny <mi...@gmail.com>.
Dividing bits over seconds is quite simple, each xfer is not going to be
exactly the same even if you send /get the same file from/to the same
server. For whatever reason your xfer rates seem reasonable, so they are
probably correct.

On Wed, Aug 10, 2011 at 8:52 PM, bahar ertik <ba...@gmail.com> wrote:

> I have tried that but this doesn't give the correct transfer rate. Because
> the result I get is far away from the result I get when I do it manuallt,
> stepwise!
> Manually done the transfer rate for the put is 17.09 MB/sec and get 87.83
> MB/sec.
> Recording the time at start and end gives the result  put 11.11 MB/sec and
> get 33 MB/sec.
>
> On Wed, Aug 10, 2011 at 10:45 AM, Miroslav Pokorny <
> miroslav.pokorny@gmail.com> wrote:
>
> > Record the time at the start and end of the operation and divide tht with
> > the file size.
> >
> > On Wed, Aug 10, 2011 at 5:50 PM, bahar ertik <ba...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am trying to transfer files from my server to a client using ftp in
> > java
> > > and this works without any problems.
> > > My question is: Is there any way to find out the transfer rate, MB/s,
> of
> > > the
> > > transfer?
> > >
> > > Best Regards
> > >
> >
> >
> >
> > --
> > mP
> >
>



-- 
mP

Re: find out the transfer rate

Posted by bahar ertik <ba...@gmail.com>.
I have tried that but this doesn't give the correct transfer rate. Because
the result I get is far away from the result I get when I do it manuallt,
stepwise!
Manually done the transfer rate for the put is 17.09 MB/sec and get 87.83
MB/sec.
Recording the time at start and end gives the result  put 11.11 MB/sec and
get 33 MB/sec.

On Wed, Aug 10, 2011 at 10:45 AM, Miroslav Pokorny <
miroslav.pokorny@gmail.com> wrote:

> Record the time at the start and end of the operation and divide tht with
> the file size.
>
> On Wed, Aug 10, 2011 at 5:50 PM, bahar ertik <ba...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to transfer files from my server to a client using ftp in
> java
> > and this works without any problems.
> > My question is: Is there any way to find out the transfer rate, MB/s, of
> > the
> > transfer?
> >
> > Best Regards
> >
>
>
>
> --
> mP
>

Re: find out the transfer rate

Posted by Miroslav Pokorny <mi...@gmail.com>.
Record the time at the start and end of the operation and divide tht with
the file size.

On Wed, Aug 10, 2011 at 5:50 PM, bahar ertik <ba...@gmail.com> wrote:

> Hi,
>
> I am trying to transfer files from my server to a client using ftp in java
> and this works without any problems.
> My question is: Is there any way to find out the transfer rate, MB/s, of
> the
> transfer?
>
> Best Regards
>



-- 
mP