Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FA3D1795B for ; Thu, 11 Jun 2015 12:37:01 +0000 (UTC) Received: (qmail 28506 invoked by uid 500); 11 Jun 2015 12:37:00 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 28397 invoked by uid 500); 11 Jun 2015 12:37:00 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 28258 invoked by uid 99); 11 Jun 2015 12:37:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2015 12:37:00 +0000 Date: Thu, 11 Jun 2015 12:37:00 +0000 (UTC) From: "Himanshu Mittal (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-8860) Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Himanshu Mittal created CAMEL-8860: -------------------------------------- Summary: Too many connection in TIME_WAIT when tempfilename is set in the FTP producer URI. Key: CAMEL-8860 URL: https://issues.apache.org/jira/browse/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:////? password=RAW(PASSWORD)&binary=true&passiveMode=false&delete=true&pollStrategy=#ConsumerPollStrategy&disconnect=false&tempFileName=/temp/hello.tmp&initialDelay=10&throwExceptionOnConnectFailed=true&reconnectDelay=10&maximumReconnectAttempts=0&maxMessagesPerPoll=100&readLock=changed&readLockCheckInterval=500&readLockMinLength=1&sendEmptyMessageWhenIdle=true 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 transfer. -- This message was sent by Atlassian JIRA (v6.3.4#6332)