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

memory leak in web service client with WS Addressing feature

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      The jax-ws web service client is causing serious memory leak if the WS-Addressing feature is enabled.

      Relevant spring context configuration:

      <jaxws:client id="wsClient"
      		serviceClass="com.example.WebService"
      		address="${service.url}" serviceName="s:WebService"
      		xmlns:s="http://ServiceContracts/2014/11/WebService"
      		endpointName="s:WebService" bindingId="http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true">
      	<jaxws:features>
      		<wsa:addressing xmlns:wsa="http://cxf.apache.org/ws/addressing" />
      	</jaxws:features>
      </jaxws:client>
      

      Relevant spring managed client code:

      @Autowired
      private WebService webServiceClient;
      
      private void callClient(){
       webServiceClient.doSomething();
      }
      

      Memory behavior and heap dump screenshots are attached.

      In case you need the heapdump file, please let me know.

      Thanks in advance!
      Levi

      Attachments

        1. heapdump_classes.PNG
          52 kB
          Levente Kiss
        2. heapdump_reference.PNG
          80 kB
          Levente Kiss
        3. memory_usage.PNG
          89 kB
          Levente Kiss

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lepike Levente Kiss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: