You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Stefan Nienhuis (Jira)" <ji...@apache.org> on 2025/12/16 11:16:00 UTC

[jira] [Created] (CXF-9191) EHCacheTokenStore resource leak

Stefan Nienhuis created CXF-9191:
------------------------------------

             Summary: 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.1.4, 4.0.9
            Reporter: Stefan Nienhuis


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)