Return-Path: Delivered-To: apmail-servicemix-dev-archive@www.apache.org Received: (qmail 3372 invoked from network); 4 Feb 2010 03:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 03:54:55 -0000 Received: (qmail 46125 invoked by uid 500); 4 Feb 2010 03:54:54 -0000 Delivered-To: apmail-servicemix-dev-archive@servicemix.apache.org Received: (qmail 45995 invoked by uid 500); 4 Feb 2010 03:54:54 -0000 Mailing-List: contact dev-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@servicemix.apache.org Delivered-To: mailing list dev@servicemix.apache.org Received: (qmail 45655 invoked by uid 99); 4 Feb 2010 03:54:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 03:54:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 03:54:52 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A0E12234C1F0 for ; Wed, 3 Feb 2010 19:54:32 -0800 (PST) Message-ID: <214220463.10361265255672657.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Feb 2010 03:54:32 +0000 (UTC) From: "Freeman Fang (JIRA)" To: dev@servicemix.apache.org Subject: [jira] Assigned: (SMXCOMP-706) Poor interceptor chain management and memory leak in CxfBc In-Reply-To: <1996220290.10061265237074404.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ 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.