Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC05F10E07 for ; Fri, 2 Aug 2013 00:57:47 +0000 (UTC) Received: (qmail 39259 invoked by uid 500); 2 Aug 2013 00:57:47 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 39223 invoked by uid 500); 2 Aug 2013 00:57:47 -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 39215 invoked by uid 99); 2 Aug 2013 00:57:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 00:57:47 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of jw@yahoo-inc.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 00:57:41 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V53fs-0005HJ-37 for users@activemq.apache.org; Thu, 01 Aug 2013 17:56:56 -0700 Date: Thu, 1 Aug 2013 17:56:41 -0700 (PDT) From: Jake Choi To: users@activemq.apache.org Message-ID: <1375405001076-4670035.post@n4.nabble.com> In-Reply-To: <1375401657063-4670033.post@n4.nabble.com> References: <1375114612647-4669838.post@n4.nabble.com> <1375225948718-4669896.post@n4.nabble.com> <1375375672931-4670001.post@n4.nabble.com> <1375397810293-4670029.post@n4.nabble.com> <1375401478365-4670031.post@n4.nabble.com> <1375401657063-4670033.post@n4.nabble.com> Subject: Re: cursor memory usage/limit vs memory usage/limit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I think I got it. With activemq-core-5.7.0, there's a clear difference between doing and non-doing the following: policyEntry.setPendingDurableSubscriberPolicy(new StorePendingDurableSubscriberMessageStoragePolicy()); One resulting difference was that, StoreDurableSubscriberCursor#topics member variable (TopicStorePrefetch map) was empty when I used the above setting. This was because the instance of StoreDurableSubscriberCursor class is created 3 times with the above line, while it was created only once without the above line. Moreover, when the above line is used, TopicStorePrefetch instance is set to the 2nd instance of StoreDurableSubscriberCursor while the one actually being used during the processing was the third. In other words, at runtime, Topic is working without any TopicStorePrefetch cursor... I'm looking into the sources more to know why this is happening... -- View this message in context: http://activemq.2283324.n4.nabble.com/cursor-memory-usage-limit-vs-memory-usage-limit-tp4669679p4670035.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.