Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1429

Memory Leak at PolicyEngineImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.5
    • WS-* Components
    • None

    Description

      Certain data structures in CXF PolicyEngineImpl were holding reference to EndpointInfo, EndpointPolicy, BindingInfo etc. Clean up all the data structures during application stop, that keep a reference to the EndpointInfo object or which have EndpointInfo as the key.

      Map of (EndpointInfo vs EndpointPolicy) maintained at PolicyEngineImpl. The client and server EndpointInfo's get added to this map. So while the server endpoint is stopped, we need to identify all the client EndpointInfos pertaining to this Server EndpointInfo, and cleanup them.

      See the overridden remove() method of endpointInfo map.

      Attached a patch sources on CXF 2.0.2.

      Attachments

        1. PolicyEngineImpl.java
          24 kB
          Bharath Ganesh
        2. EndpointInfo.java
          4 kB
          Bharath Ganesh

        Activity

          People

            dkulp Daniel Kulp
            bharathganesh Bharath Ganesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: