servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (SMXCOMP-706) Poor interceptor chain management and memory leak in CxfBc
Date Thu, 04 Feb 2010 03:54:32 GMT

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

Freeman Fang reassigned SMXCOMP-706:
------------------------------------

    Assignee: Freeman Fang

> Poor interceptor chain management and memory leak in CxfBc
> ----------------------------------------------------------
>
>                 Key: SMXCOMP-706
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-706
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>            Reporter: Daniel Kulp
>            Assignee: Freeman Fang
>         Attachments: cxf-bc-bug.txt
>
>
> CxfBcProvider and CxfBcProviderMessageObserver use a PhaseChainCache object to create
the PhaseInterceptorChain.  However, it doesn't actually use it as a cache so that is useless.
  The cache object creates a chain, then clones it and holds onto the original.   Thus, double
the memory is used at the start plus the processing time of the clone.
> Also, the BcProvider calls getOutInterceptors().addAll(getBus().getOutInterceptors());
for EVERY request causing the getOutInterceptors list to grow causing a memory leak.
> I'll attach a patch that fixes them both.

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


Mime
View raw message