You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andy McCright (JIRA)" <ji...@apache.org> on 2019/03/11 14:29:00 UTC

[jira] [Resolved] (CXF-7992) MP Rest Client leaks async interceptors

     [ https://issues.apache.org/jira/browse/CXF-7992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright resolved CXF-7992.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 3.3.2

> MP Rest Client leaks async interceptors
> ---------------------------------------
>
>                 Key: CXF-7992
>                 URL: https://issues.apache.org/jira/browse/CXF-7992
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.3.0, 3.3.1
>            Reporter: Andy McCright
>            Assignee: Andy McCright
>            Priority: Major
>             Fix For: 3.3.2
>
>
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)