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 <rino.van.wijngaar...@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: cib...@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/