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 A546919D4D for ; Tue, 22 Mar 2016 10:55:25 +0000 (UTC) Received: (qmail 73490 invoked by uid 500); 22 Mar 2016 10:55:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 73455 invoked by uid 500); 22 Mar 2016 10:55:25 -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 73446 invoked by uid 99); 22 Mar 2016 10:55:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 10:55:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 693162C14DC for ; Tue, 22 Mar 2016 10:55:25 +0000 (UTC) Date: Tue, 22 Mar 2016 10:55:25 +0000 (UTC) From: "Thomas Papke (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-9738) Thread leak for camel-mina2 consumers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Papke created CAMEL-9738: ----------------------------------- Summary: Thread leak for camel-mina2 consumers Key: CAMEL-9738 URL: https://issues.apache.org/jira/browse/CAMEL-9738 Project: Camel Issue Type: Bug Components: camel-mina2 Affects Versions: 2.16.2 Reporter: Thomas Papke The camel-mina2 consumer ({{org.apache.camel.component.mina2.Mina2Consumer.doStart()}}) internally start a Mina2 IoAcceptor ({{org.apache.mina.core.service.IoAcceptor}}), but the {{org.apache.camel.component.mina2.Mina2Consumer.doStop()}} do not invoke {{acceptor.dispose(true);}} to release the threadpool started by Mina2. *Current behavior:* While stopping the web application, the threadpool started by Mina2 IoAcceptor will not be stopped, so we have several thread which do not properly shutdown. *Current workaround:* I create custom CamelShutdownStrategy and collect all Mina2Consumer and invoke Mina2consumer.getAcceptor.dispose(true); OR as an alternative create a dedicated consumer and overwrite the stop method of the Mina2 consumer as seen here: https://github.com/oehf/ipf/commit/12fdde8df7ebbbb7cd9966aadeab3ea3bed8fe75 *Suggested bugfix:* In {{org.apache.camel.component.mina2.Mina2Consumer.doStop()}} call the IoAcceptor dispose(true) method after unbind from the address. -- This message was sent by Atlassian JIRA (v6.3.4#6332)