Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 22942 invoked from network); 25 Feb 2007 07:14:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2007 07:14:26 -0000 Received: (qmail 41440 invoked by uid 500); 25 Feb 2007 07:14:34 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 41419 invoked by uid 500); 25 Feb 2007 07:14:34 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 41410 invoked by uid 99); 25 Feb 2007 07:14:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Feb 2007 23:14:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Feb 2007 23:14:24 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1950E71403E for ; Sat, 24 Feb 2007 23:14:04 -0800 (PST) Message-ID: <12573308.1172387644100.JavaMail.jira@brutus> Date: Sat, 24 Feb 2007 23:14:04 -0800 (PST) From: "Rob Davies (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1082) Improve Kaha freeList MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38571 ] Rob Davies commented on AMQ-1082: --------------------------------- Hi Albert, Is this still the case ? I'm sure this was fixed a week or so ago cheers, Rob > Improve Kaha freeList > --------------------- > > Key: AMQ-1082 > URL: https://issues.apache.org/activemq/browse/AMQ-1082 > Project: ActiveMQ > Issue Type: Improvement > Affects Versions: 4.2.0 > Reporter: jk@penguinsfan.com > Assigned To: Rob Davies > Fix For: 4.2.0 > > > This is in kaha.impl.index.IndexManager.java. > The index currently maintains an in-memory free list. Each entry costs at least 51 bytes of RAM. Issue is that the more free space that there is in the file, the more RAM is used (oddly enough). > I am worried about the case where suppose a producer enqueues millions of messages and then stops. Now, suppose a consumer dequeues all of the messages (no producers are starting up during this time, so the free entries are not being reclaimed). Seems like this could use a huge amount of memory. Yes, 51 MB is not that much, but suppose there are a bunch of consumers and hence a ConsumerMessageRef for each one. (Maybe I'm missing something....) > Perhaps this linked list could be pushed into the Kaha store itself, by rewriting the IndexItems on disk to point previous/next free item, thus maintaining this on disk and in place. For perf reasons, maybe supplement with some caching but that might not really be necessary because the OS cache should help out. > A lot of the other places in Kaha (such as ListContainerImpl.java) have caches which limit to say 100 cached items, but the free list seems to obviate all of that stuff due to it being essentially unbounded. > Any thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.