You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/03/09 18:36:39 UTC
[jira] [Resolved] (CXF-6284) JAX-RS servlet run-time leaks
additional strong references
[ https://issues.apache.org/jira/browse/CXF-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-6284.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.0.5
2.7.16
3.1.0
Assignee: Sergey Beryozkin
Thanks for tracking it down
> 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:
> <Container id="myStatelessContainer" type="STATELESS">
> MaxSize = 0
> StrictPooling = false
> </Container>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)