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 BE86AC34E for ; Fri, 28 Jun 2013 06:36:25 +0000 (UTC) Received: (qmail 23016 invoked by uid 500); 28 Jun 2013 06:36:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 22944 invoked by uid 500); 28 Jun 2013 06:36:24 -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 22925 invoked by uid 99); 28 Jun 2013 06:36:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 06:36:22 +0000 Date: Fri, 28 Jun 2013 06:36:22 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-6452) FileUtil.getDefaultTempDir() causes a classloader leak in webapps MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-6452: ------------------------------- Fix Version/s: (was: 2.11.1) 2.11.2 > FileUtil.getDefaultTempDir() causes a classloader leak in webapps > ----------------------------------------------------------------- > > Key: CAMEL-6452 > URL: https://issues.apache.org/jira/browse/CAMEL-6452 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.10.4 > Environment: tomcat 7, spring 3.2 > Reporter: Sanjay Deshmukh > Fix For: 2.10.6, 2.11.2, 2.12.0 > > Attachments: 0001-Fixed-CAMEL-6452-by-adding-a-cleanup-routine-to-remo.patch > > > FileUtil.getDefaultTempDir() registers a JVM shutdown hook to delete the temporary directory it creates. We are using camel in a web application in Tomcat that gets dynamically reloaded as updates are available, so the JVM is normally never shut down. This is causing 'camel-tmp-*' directories to linger in $CATALINA_HOME/temp, and - more importantly - classloader leaks, which are a major problem for us. > If the thread that gets registered as the shutdown hook were stored in a class variable, I could unregister it when the application is being unloaded. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira