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

MP Rest Client leaks async interceptors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0, 3.3.1
    • 3.3.2
    • JAX-RS
    • None
    • Unknown

    Description

      Every async method request on the MP Rest Client results in new MPAsyncInvocationInterceptorPostAsyncImpl and MPAsyncInvocationInterceptorRemoveAsyncImpl interceptors applied to the ClientConfiguration associated with the proxy impl.  This can quickly lead to OOM conditions.

       

      The following heap dump info was observed using CXF 3.3.0 in WebSphere Liberty:
      25,967,912 (42.9%) [56] 9 org/apache/cxf/microprofile/client/proxy/MicroProfileClientProxyImpl 0xe0bcbba8

      • 25,963,672 (42.9%) [56] 8 org/apache/cxf/jaxrs/client/ClientConfiguration 0xe0bcbcf8
      • 23,894,672 (39.48%) [24] 3 org/apache/cxf/common/util/ModCountCopyOnWriteArrayList 0xe12602b0
      • 23,894,552 (39.48%) [853,360] 213,341 array of java/lang/Object 0xf8a61090
      • 312 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe12db1a0
      • 296 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorRemoveContextImpl 0xe12db218
      • 272 (0%) [32] 6 org/apache/cxf/jaxrs/client/ClientProxyImpl$ClientAsyncResponseInterceptor 0xe12db140
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1bdd300
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe16a8eb8
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc2d8
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1e34c28
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc3b0
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1f17e88
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc488
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1e34d00
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc560
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1aaef68
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc638
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1e34dd8
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc710
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1f17f60
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc7e8
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1e34eb0
      • 120 (0%) [32] 5 org/apache/cxf/microprofile/client/proxy/MPAsyncInvocationInterceptorPostAsyncImpl 0xe1dfc8c0
      • There are 213,321 more children

      Attachments

        Activity

          People

            andymc Andrew J McMurry
            andymc Andrew J McMurry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: