cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Ganesh (JIRA)" <>
Subject [jira] Created: (CXF-1218) Memory Leak in Policy Engine
Date Mon, 19 Nov 2007 06:59:44 GMT
Memory Leak in Policy Engine

                 Key: CXF-1218
             Project: CXF
          Issue Type: Bug
          Components: WS-* Components
    Affects Versions: 2.0.3, 2.0.4
            Reporter: Bharath Ganesh
             Fix For: 2.0.4

A memory leak is figured out when the CXF Policy Engine is enabled. 
When an endpoint is deployed, the createEndpointPolicyInfo(EndpointInfo , boolean, Assertor)
method of PolicyEngineImpl is invoked where-in a EndpointPolicy is created for the endpoint
and put into the endpointInfo map (EndpointInfo Vs EndpointPolicy).
During endpoint shutdown/stop, the endpoint policy is never removed from the map.

Possible Fix:

Make PolicyEngineImpl implement ServerLifeCycleListener. In the stopServer() callback remove
the EndpointPolicy from the map of EndpointInfo Vs EndpointPolicy.

public void stopServer(Server server)

        EndpointInfo ei = server.getEndpoint().getEndpointInfo();

Hope this is a feasible fix.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message