camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Himanshu Mittal (JIRA)" <>
Subject [jira] [Created] (CAMEL-8860) Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI.
Date Thu, 11 Jun 2015 12:37:00 GMT
Himanshu Mittal created CAMEL-8860:

             Summary: Too many connection in TIME_WAIT when tempfilename is set in the FTP
producer URI.
                 Key: CAMEL-8860
             Project: Camel
          Issue Type: Bug
          Components: camel-ftp
    Affects Versions: 2.14.0
            Reporter: Himanshu Mittal
            Priority: Critical

So many connections remain in TIME_WAIT state while configuring a FTP producer route with
tempfilename property in FTP producer. 

I am using 
Producertemplate.sendBodyAndHeader(producerURI, Exchange.FILE_NAME, fileName) to write file
to destination. 

Producer URI : ftp://<USER@MACHINE_ADDRESS>//?
fileName: "file.tmp". 

We are writing ~ 2000 files . First files are written to temp directory then moved to destination.
Connections opened for tempfiles are not re used to write temporary files and we run out of
connection after writing 1000 files. 
Route resumes once connections are released. 
Is there a way we can  reuse connection to write temporary files also.

Once tempfilename is removed from the configuration then single connection is used for ftp

This message was sent by Atlassian JIRA

View raw message