Hi 

I think "readLockCheckInterval=1000" means that the process waits 1 second for 
EVERY FILE to check the read-lock. So you would get a throughput of less than 1 
file per second. Do you mean that with slow?

Regards
Stephan


-----Ursprüngliche Nachricht-----
Von: chandresh pancholi [mailto:chandreshpancholi...@gmail.com] 
Gesendet: Mittwoch, 16. August 2017 11:17
An: users@camel.apache.org
Betreff: Camel FTP polling is very slow

Hi,

I am polling files from FTP with below attributes.

ftpBuilder.append("://")
        .append(username + "@"+ url)
        .append(remotePath)
        .append("?password=")
        .append(password)
        .append("&delay=")
        .append(appConfig.getFtpDelay())
        .append("&passiveMode=")
        .append("true")
        .append("&move=")
        .append("done-")
         .append(getIp())
        .append("&disconnectOnBatchComplete=")
        .append("true")
        .append("&idempotent=")
        .append("true")
        .append("&maxMessagesPerPoll=5")
        .append("&readLock=idempotent-changed")
        .append("&readLockCheckInterval=1000") ;

Polling from FTP become really slow. Please check if I am doing something wrong.
--
Chandresh Pancholi
Senior Software Engineer
Flipkart.com
Email-id:chandresh.panch...@flipkart.com
Contact:08951803660

Reply via email to