[
https://issues.apache.org/jira/browse/CXF-9191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045487#comment-18045487
]
Stefan Nienhuis commented on CXF-9191:
--------------------------------------
Eclipse Memory Analyzer report:
10,000 instances of {*}org.ehcache.core.EhcacheManager{*}, loaded by
*jdk.internal.loader.ClassLoaders$AppClassLoader @ 0x5c016e9c0* occupy
*179,360,000 (43.33%)* bytes.
Most of these instances are referenced from one instance of
{*}java.lang.Object[]{*}, loaded by {*}<system class loader>{*}, which occupies
*1,400,032 (0.34%)* bytes. The instance is referenced by
{*}org.apache.cxf.bus.managers.CXFBusLifeCycleManager @ 0x5c145aeb8{*}, loaded
by {*}jdk.internal.loader.ClassLoaders$AppClassLoader @ 0x5c016e9c0{*}.
*Keywords*
* org.ehcache.core.EhcacheManager
* jdk.internal.loader.ClassLoaders$AppClassLoader
* java.lang.Object[]
* org.apache.cxf.bus.managers.CXFBusLifeCycleManager
> EHCacheTokenStore resource leak
> -------------------------------
>
> Key: CXF-9191
> URL: https://issues.apache.org/jira/browse/CXF-9191
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 4.0.9, 4.1.4
> Reporter: Stefan Nienhuis
> Priority: Major
>
> EHCacheTokenStore is not unregistered from the
> BusLifeCycleManager on close, causing it to never be collected by the GC. In
> our use case [Oxalis|[https://github.com/OxalisCommunity/oxalis-ng]], this
> causes a memory leak as an instance is created for every request. We're
> seeing linear increase in memory with requests on production.
>
> Proposed fix: Unregister from the BusLifeCycleManager in close()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)