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 ECEE1200BA0 for ; Fri, 14 Oct 2016 16:24:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EBDEE160AD9; Fri, 14 Oct 2016 14:24:31 +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 1B2C9160AF7 for ; Fri, 14 Oct 2016 16:24:30 +0200 (CEST) Received: (qmail 59465 invoked by uid 500); 14 Oct 2016 14:24:25 -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 56487 invoked by uid 99); 14 Oct 2016 14:24:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 14:24:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A862E2C4C79 for ; Fri, 14 Oct 2016 14:24:23 +0000 (UTC) Date: Fri, 14 Oct 2016 14:24:23 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CXF-6284) JAX-RS servlet run-time leaks additional strong references MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 14:24:32 -0000 [ https://issues.apache.org/jira/browse/CXF-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh closed CXF-6284. ------------------------------------ > JAX-RS servlet run-time leaks additional strong references > ---------------------------------------------------------- > > Key: CXF-6284 > URL: https://issues.apache.org/jira/browse/CXF-6284 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.6.14 > Reporter: Brian Fundakowski Feldman > Assignee: Sergey Beryozkin > Priority: Minor > Fix For: 3.1.0, 2.7.16, 3.0.5 > > > Doing local debugging of an application on TomEE 1.7.0 using JAX-RS and EJBs, after unloading, I traced back strong references via the jaxrs-field-proxy-map. Some of these got fixed in CXF 3.0 by this commit: > https://github.com/apache/cxf/commit/d012b94b94686dc98762b919a60b765be5b0b3df > However, org.apache.cxf.jaxrs.model.AbstractResourceInfo's addToMap() creates a HashMap instead of a WeakHashMap, so strong references to fields still remain and prevent GC. > In order to validate fixing these issues, I also had to modify my thread pooling to see that the last remaining strong reference, via a Stateless pool thread's threadLocals, got removed: > > MaxSize = 0 > StrictPooling = false > -- This message was sent by Atlassian JIRA (v6.3.4#6332)