camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GarethHughes <gareth.hug...@hp.com>
Subject Re: Performance problem uploading to remote FTP using Stream
Date Wed, 13 Mar 2013 17:35:28 GMT
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.

Mime
View raw message