Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 79786 invoked from network); 20 Mar 2010 00:14:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Mar 2010 00:14:13 -0000 Received: (qmail 29316 invoked by uid 500); 20 Mar 2010 00:14:13 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 29288 invoked by uid 500); 20 Mar 2010 00:14:13 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 29280 invoked by uid 99); 20 Mar 2010 00:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 00:14:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [65.55.88.15] (HELO TX2EHSOBE010.bigfish.com) (65.55.88.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 00:14:06 +0000 Received: from mail174-tx2-R.bigfish.com (10.9.14.254) by TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id 8.1.240.5; Sat, 20 Mar 2010 00:13:44 +0000 Received: from mail174-tx2 (localhost [127.0.0.1]) by mail174-tx2-R.bigfish.com (Postfix) with ESMTP id C49E11758BAD for ; Sat, 20 Mar 2010 00:13:43 +0000 (UTC) X-SpamScore: 5 X-BigFish: VPS5(zzzz1202hzzz2dh6bh2a8h255m43h62h) X-Spam-TCS-SCL: 1:0 X-FB-SS: 5,5, Received: from mail174-tx2 (localhost.localdomain [127.0.0.1]) by mail174-tx2 (MessageSwitch) id 1269044021157272_17091; Sat, 20 Mar 2010 00:13:41 +0000 (UTC) Received: from TX2EHSMHS049.bigfish.com (unknown [10.9.14.243]) by mail174-tx2.bigfish.com (Postfix) with ESMTP id 236A4BD804D for ; Sat, 20 Mar 2010 00:13:41 +0000 (UTC) Received: from PS1WEX711.EDMUNDS.HQ (204.16.216.136) by TX2EHSMHS049.bigfish.com (10.9.99.149) with Microsoft SMTP Server (TLS) id 14.0.482.39; Sat, 20 Mar 2010 00:13:40 +0000 Received: from [10.32.33.12] (10.32.33.12) by PS1WEX711.EDMUNDS.HQ (10.16.18.16) with Microsoft SMTP Server id 8.1.393.1; Fri, 19 Mar 2010 17:13:39 -0700 From: Brian Tanner Content-Type: multipart/alternative; boundary="Apple-Mail-1-826527192" Subject: Disk store usage with virtual topics Date: Fri, 19 Mar 2010 17:13:39 -0700 Message-ID: To: MIME-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) X-Reverse-DNS: unknown --Apple-Mail-1-826527192 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hi, our development team is observing a lot of storage retention when = using virtual topics under the following scenario (we are using the = default store cursors with kahadb persistence, activemq.xml provided = below): We create one virtual topic with a single queue wired to it. When we = send a batch of messages, with no consumers on the queue and observe a = certain amount of store usage, call it 100mb. We turn on a consumer for = the queue and drain the messages. Storage usage falls close to zero. = This makes sense to everybody. Now we add two more queues to the same = virtual topic, remove all consumers, then run another batch of messages. = Store usage spikes up to 300mb. This suggests each queue gets its own = complete copy of the message, which is fine, we can tolerate that. We = turn on consumers for all queues, drain the messages from the queues and = our disk store usage returns close to zero. Everything is as expected. = Now the problem scenario: We run a third batch of messages, again with = no consumers on. Disk store goes to 300mb. Then we turn consumers on = for TWO of the THREE queues on the virtual topic. Two of the queues are = drained, but the third queue is still full. We would expect disk store = usage to be 100mb reflecting the one full queue's worth of messages. = Instead disk store stays at 300mb. =20 This suggests that when messages are multiplexed through a virtual = topic, the disk store will not release space for a message until ALL = queues on the virtual topic have consumed this message. Is this = expected behavior? If so, why does disk store allocate 3x space for 3x = queues if they seem to be tied to the same life cycle? Can anyone help = explain? Our config running on activemq (fuse branch) 5.3.0.5: = file:${activemq.base}/conf/credentials.properties " producerFlowControl=3D"false" = memoryLimit=3D"5mb" /> " producerFlowControl=3D"false" = memoryLimit=3D"5mb" /> = --Apple-Mail-1-826527192--