Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 15550 invoked from network); 29 Jun 2009 15:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jun 2009 15:56:20 -0000 Received: (qmail 42707 invoked by uid 500); 29 Jun 2009 15:56:31 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 42655 invoked by uid 500); 29 Jun 2009 15:56:31 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 42634 invoked by uid 500); 29 Jun 2009 15:56:31 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 42631 invoked by uid 99); 29 Jun 2009 15:56:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 15:56:31 +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; Mon, 29 Jun 2009 15:56:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 12B08234C044 for ; Mon, 29 Jun 2009 08:56:07 -0700 (PDT) Message-ID: <1555050182.1246290967070.JavaMail.jira@brutus> Date: Mon, 29 Jun 2009 08:56:07 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1771) ProducerCache should be limited to not eat memory (was: recipientList leaks memory) In-Reply-To: <90473436.1246267447699.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52557#action_52557 ] Claus Ibsen commented on CAMEL-1771: ------------------------------------ Yeah CamelContext also holds a list of all endpoints created. I guess we should use a LRUCache as well to avoid high memory usages. Another idea is to not add these endpoints to the CamelContext internal list at all as you will not re-use them later anyway. But I am working on a patch for the JMX console right now. Only registering 1 endpoint for all the https. > ProducerCache should be limited to not eat memory (was: recipientList leaks memory) > ----------------------------------------------------------------------------------- > > Key: CAMEL-1771 > URL: https://issues.apache.org/activemq/browse/CAMEL-1771 > Project: Apache Camel > Issue Type: Bug > Affects Versions: 1.4.0, 1.5.0, 1.6.0, 1.6.1, 2.0-M2 > Reporter: Andres > Assignee: Claus Ibsen > Priority: Critical > Fix For: 1.6.2, 2.0.0 > > > I found that RecipientList leaks memory . > The problem is that RecipientList stores endpoints in producerCache and cache key computed by using getEndpointUri. If endpoint uris are unique ( as we have ) then every new entry will stored in cache and will never released. > In example we are using recipientList to send messages to the external http server, every url contains unique query parameters therefor every recipientList entry will create new producer ant that producer will stored in producerCache. > In our system recipientList wlil leak about 20M per day > Unfortunately I was unable to find any workaround -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.