Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A70DD200B85 for ; Wed, 31 Aug 2016 17:48:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A3403160AB5; Wed, 31 Aug 2016 15:48:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC64D160ABA for ; Wed, 31 Aug 2016 17:48:26 +0200 (CEST) Received: (qmail 45477 invoked by uid 500); 31 Aug 2016 15:48:21 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 45249 invoked by uid 99); 31 Aug 2016 15:48:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 15:48:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B1EBE2C1B80 for ; Wed, 31 Aug 2016 15:48:20 +0000 (UTC) Date: Wed, 31 Aug 2016 15:48:20 +0000 (UTC) From: "Grzegorz Grzybek (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4686) ClassLoader leak with RmiRegistryFactory and sun.rmi.transport.tcp.TCPEndpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 Aug 2016 15:48:32 -0000 [ https://issues.apache.org/jira/browse/KARAF-4686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Grzegorz Grzybek updated KARAF-4686: ------------------------------------ Affects Version/s: 2.4.4 4.0.6 3.0.8 > ClassLoader leak with RmiRegistryFactory and sun.rmi.transport.tcp.TCPEndpoint > ------------------------------------------------------------------------------ > > Key: KARAF-4686 > URL: https://issues.apache.org/jira/browse/KARAF-4686 > Project: Karaf > Issue Type: Bug > Affects Versions: 2.4.4, 4.0.6, 3.0.8 > Reporter: Grzegorz Grzybek > > Here's a leak I found in JVisualVM. > {noformat} > this - value: org.apache.felix.framework.BundleWiringImpl #3 > <- m_wiring - class: org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5, value: org.apache.felix.framework.BundleWiringImpl #3 > <- - class: org.apache.karaf.management.RmiRegistryFactory$KarafServerSocketFactory, value: org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 #3 > <- - class: org.apache.karaf.management.RmiRegistryFactory$KarafServerSocketFactory, value: org.apache.karaf.management.RmiRegistryFactory$KarafServerSocketFactory class RmiRegistryFactory$KarafServerSocketFactory > <- ssf - class: sun.rmi.transport.tcp.TCPEndpoint, value: org.apache.karaf.management.RmiRegistryFactory$KarafServerSocketFactory #1 > <- key - class: java.util.HashMap$Entry, value: sun.rmi.transport.tcp.TCPEndpoint #9 > <- next - class: java.util.HashMap$Entry, value: java.util.HashMap$Entry #19809 > <- [0] - class: java.util.HashMap$Entry[], value: java.util.HashMap$Entry #28136 > <- table - class: java.util.HashMap, value: java.util.HashMap$Entry[] #4031 > <- localEndpoints (sticky class) - class: sun.rmi.transport.tcp.TCPEndpoint, value: java.util.HashMap #4065 > {noformat} > sun.rmi.transport.tcp.TCPEndpoint has non-weak map that keeps references to socket factories: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/48c99b423839/src/share/classes/sun/rmi/transport/tcp/TCPEndpoint.java#l148 > This prevents cleaning up classloader of {{org.apache.karaf.management.server}} bundle. -- This message was sent by Atlassian JIRA (v6.3.4#6332)