You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rwijngaa <ri...@gmail.com> on 2015/06/02 15:51:43 UTC

Tip: speed up camel-ftp download/upload by setting bufferSize on the FTPClient

Just a tip for those experiencing performance problems using ftp download
with the localWorkDirectory option.

We've got a camel route that downloads a file via ftp and upload this file
to another ftp server.
Since the files grew big, we added the localWorkDirectory option.
The performance was extremely slow, order of bytes / kbytes per second.

Camel-ftp uses the org.apache.commons.net.ftp.FTPClient for it's ftp
communication,
but the default buffersize seems to be 0 (!), causing -in our case- dramatic
slow transfer speeds!

We sped things up by creating our own ftpclient instance with a bigger
buffersize 


And, in your route, add ftpClient option like this:


and things were very fast again ;-)

Regards
Rino




--
View this message in context: http://camel.465427.n5.nabble.com/Tip-speed-up-camel-ftp-download-upload-by-setting-bufferSize-on-the-FTPClient-tp5767800.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Tip: speed up camel-ftp download/upload by setting bufferSize on the FTPClient

Posted by rwijngaa <ri...@gmail.com>.
Hi,

I'm using camel 2.12.x

Regards
Rino




--
View this message in context: http://camel.465427.n5.nabble.com/Tip-speed-up-camel-ftp-download-upload-by-setting-bufferSize-on-the-FTPClient-tp5767800p5767903.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Tip: speed up camel-ftp download/upload by setting bufferSize on the FTPClient

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Thanks for the tip. What Camel version do you use?

I think we have fixed setting the default receive buffer size to 32kb
in Camel 2.15.1 onwards.


On Tue, Jun 2, 2015 at 3:51 PM, rwijngaa <ri...@gmail.com> wrote:
> Just a tip for those experiencing performance problems using ftp download
> with the localWorkDirectory option.
>
> We've got a camel route that downloads a file via ftp and upload this file
> to another ftp server.
> Since the files grew big, we added the localWorkDirectory option.
> The performance was extremely slow, order of bytes / kbytes per second.
>
> Camel-ftp uses the org.apache.commons.net.ftp.FTPClient for it's ftp
> communication,
> but the default buffersize seems to be 0 (!), causing -in our case- dramatic
> slow transfer speeds!
>
> We sped things up by creating our own ftpclient instance with a bigger
> buffersize
>
>
> And, in your route, add ftpClient option like this:
>
>
> and things were very fast again ;-)
>
> Regards
> Rino
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Tip-speed-up-camel-ftp-download-upload-by-setting-bufferSize-on-the-FTPClient-tp5767800.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/