Hi I added a debug logging that logs how long time it takes to upload the file in Camel 2.11. As well what input stream is being used as source.
Though in the trace logging below there is no logs about using a charset, as you upload binary data. Though if you force use a special charset then Camel would have to read the stream and write with that charset, which could be a reason for being slower. But there is nothing in your logs. On Wed, Mar 13, 2013 at 6:35 PM, GarethHughes <gareth.hug...@hp.com> wrote: > The only options that I could see on the ftpClient > http://commons.apache.org/proper/commons-net//apidocs/org/apache/commons/net/ftp/FTPClient.html > <http://commons.apache.org/proper/commons-net//apidocs/org/apache/commons/net/ftp/FTPClient.html> > to adjust the buffer size are 'setBufferSize' and > 'setSendDataSocketBufferSize'. I tried various combinations/values but > nothing had any noticeable impact. I Assume I am setting these > appropriately in the URI?: > > > .to("ftp:"+host.getUsername()+"@"+host.getAddress()+"/camel_hosts/"+host.getDirectory()+"/"+host.getHostName()+"/in" > + > "?password=" + > host.getPassword() + > > "&tempFileName=../temp/${file:onlyname}" + > "&binary=true" + > "&ftpClient.dataTimeout=3000" > + > "&ftpClient.bufferSize=8192" + > > "&ftpClient.sendDataSocketBufferSize=8192" + > "&stepwise=false") > > TRACE level logging was inconclusive (as least from my layman's point of > view): > > 13/Mar/2013 17:31:47,795 [onsumer[outbound_files_DEVH11]] RemoteFileProducer > TRACE Writing using tempNameFile: > camel_hosts/.//DEVH11/in/../temp/D0265_001_POC2_B_POC2_B_OPER_L.usr > 13/Mar/2013 17:31:47,795 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE > existsFile(camel_hosts/.//DEVH11/in/D0265_001_POC2_B_POC2_B_OPER_L.usr) > 13/Mar/2013 17:31:47,983 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE > existsFile(camel_hosts/.//DEVH11/in/../temp/D0265_001_POC2_B_POC2_B_OPER_L.usr) > 13/Mar/2013 17:31:48,201 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE buildDirectory(camel_hosts\.\DEVH11\in\..\temp) > 13/Mar/2013 17:31:48,201 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE changeCurrentDirectory(/devh11) > 13/Mar/2013 17:31:48,201 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE Changing directory: /devh11 > 13/Mar/2013 17:31:48,201 [onsumer[outbound_files_DEVH11]] RemoteFileProducer > TRACE About to write > [camel_hosts/.//DEVH11/in/../temp/D0265_001_POC2_B_POC2_B_OPER_L.usr] to > [Endpoint[ftp://devh11@devgw02/camel_hosts/.//DEVH11/in?binary=true&ftpClient.bufferSize=8192&ftpClient.dataTimeout=3000&ftpClient.sendDataSocketBufferSize=8192&password=******&stepwise=false&tempFileName=..%2Ftemp%2F%24%7Bfile%3Aonlyname%7D]] > from exchange [Exchange[JmsMessage[JmsMessageID: > ID:ukmdselk024-3936-1363195885202-1:2:1:2:1]]] > 13/Mar/2013 17:31:48,217 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE > storeFile(camel_hosts/.//DEVH11/in/../temp/D0265_001_POC2_B_POC2_B_OPER_L.usr) > 13/Mar/2013 17:31:48,217 [onsumer[outbound_files_DEVH11]] FtpOperations > TRACE > doStoreFile(camel_hosts/.//DEVH11/in/../temp/D0265_001_POC2_B_POC2_B_OPER_L.usr) > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Performance-problem-uploading-to-remote-FTP-using-Stream-tp5729125p5729135.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen