Return-Path: X-Original-To: apmail-activemq-issues-archive@minotaur.apache.org Delivered-To: apmail-activemq-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 A1AB118422 for ; Tue, 25 Aug 2015 06:36:46 +0000 (UTC) Received: (qmail 66191 invoked by uid 500); 25 Aug 2015 06:36:46 -0000 Delivered-To: apmail-activemq-issues-archive@activemq.apache.org Received: (qmail 66168 invoked by uid 500); 25 Aug 2015 06:36:46 -0000 Mailing-List: contact issues-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 issues@activemq.apache.org Received: (qmail 66157 invoked by uid 99); 25 Aug 2015 06:36:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 06:36:46 +0000 Date: Tue, 25 Aug 2015 06:36:46 +0000 (UTC) From: "Nandini R (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMQ-5946) Tomcat 7.0.62 complains of memory leak when web app is stopped or reloaded MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nandini R created AMQ-5946: ------------------------------ Summary: Tomcat 7.0.62 complains of memory leak when web app is stopped or reloaded Key: AMQ-5946 URL: https://issues.apache.org/jira/browse/AMQ-5946 Project: ActiveMQ Issue Type: Bug Components: JMS client Affects Versions: 5.10.2 Environment: Tomcat 7.0.62 , ActiveMQ 5.10.2 , Spring 4.1.2 Reporter: Nandini R We are using failover protocol to connect to broker. Url is as : "failover:("+brokerUrl+")?startupMaxReconnectAttempts=2&initialReconnectDelay=60000&maxReconnectAttempts=2 Suppose I start web application with AMQ not running and then stop web application , I get below logs in tomcat SEVERE: The web application [/tcxoptimize] appears to have started a thread name d [ActiveMQ Connection Executor: unconnected] but has failed to stop it. This is very likely to create a memory leak. Aug 25, 2015 11:27:59 AM org.apache.catalina.loader.WebappClassLoader clearRefer encesThreads SEVERE: The web application [/tcxoptimize] appears to have started a thread name d [ActiveMQ Task-1] but has failed to stop it. This is very likely to create a m emory leak. I can see these 2 threads in thread dump. How do I close these on stopping web application ? On webapp shutdown I am shutting down message containers and closing spring context. I do not have issues if active MQ is running. -- This message was sent by Atlassian JIRA (v6.3.4#6332)