Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B09597BA1 for ; Thu, 3 Nov 2011 16:37:55 +0000 (UTC) Received: (qmail 53682 invoked by uid 500); 3 Nov 2011 16:37:55 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 53645 invoked by uid 500); 3 Nov 2011 16:37:55 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 53637 invoked by uid 99); 3 Nov 2011 16:37:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 16:37:55 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 16:37:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 60214330115 for ; Thu, 3 Nov 2011 16:37:32 +0000 (UTC) Date: Thu, 3 Nov 2011 16:37:32 +0000 (UTC) From: "Gary Tully (Commented) (JIRA)" To: dev@activemq.apache.org Message-ID: <1349817422.56295.1320338252395.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1349634262.56236.1320336812248.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3577) The Connection is not cleanup properly whenever the close method is called within a thread that was interrupted. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143292#comment-13143292 ] Gary Tully commented on AMQ-3577: --------------------------------- note: internally the broker should not be calling interrupt unless it catches an interrupted exception. But is should be able to handle interrupted exceptions as the occur in normal processing and continue if necessary. > The Connection is not cleanup properly whenever the close method is called within a thread that was interrupted. > ---------------------------------------------------------------------------------------------------------------- > > Key: AMQ-3577 > URL: https://issues.apache.org/jira/browse/AMQ-3577 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, JMS client > Affects Versions: 5.5.1 > Environment: any environment. > Reporter: Claudio Corsi > Fix For: 5.6.0 > > > The connection close method does not properly clean up the connection on the broker. > This is causing a memory leak on the broker because the connection is dangling. > I have not confirmed that trying to call the close method within a non-interrupted thread will properly cleanup the connection after it was already called within an interrupted thread. > I have a test case that reproduces this issue and a patch that corrects the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira