Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FE1118E96 for ; Fri, 15 Jan 2016 16:25:40 +0000 (UTC) Received: (qmail 50598 invoked by uid 500); 15 Jan 2016 16:25:40 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 50558 invoked by uid 500); 15 Jan 2016 16:25:40 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 50506 invoked by uid 99); 15 Jan 2016 16:25:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 16:25:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 186E82C1F58 for ; Fri, 15 Jan 2016 16:25:40 +0000 (UTC) Date: Fri, 15 Jan 2016 16:25:40 +0000 (UTC) From: "Diogo Sant'Ana (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6749) Classloader leak on FileUtils.createTmpDir() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6749?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D151020= 11#comment-15102011 ]=20 Diogo Sant'Ana commented on CXF-6749: ------------------------------------- Screenshot of Eclipse Memory Analyser: https://goo.gl/rofvi9 > Classloader leak on FileUtils.createTmpDir() > -------------------------------------------- > > Key: CXF-6749 > URL: https://issues.apache.org/jira/browse/CXF-6749 > Project: CXF > Issue Type: Bug > Affects Versions: 2.7.14 > Environment: Slackware Linux 14.1 (kernel 3.10.17), Java 1.7.0_75= , Tomcat 7.0.39 (this is my production environment) > Reporter: Diogo Sant'Ana > Labels: classloader-leak > > FileUtils.createTmpDir() adds a ApplicationShutdownHook to remove the rec= ently created temp folder, creating a indirect reference to the Tomcat Weba= ppClassloader from the hook static attribute at ApplicationShutdownHooks cl= ass, preventing the classloader to be collected. > Actually, it will be collected when the JVM is turned off. But this is a = web application container, it won't be turn off for a while. > I only checked this with the version I=C2=B4m currently using (2.7.14), b= ut I checked the code at 3.1.x and master branches and it still the same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)