From users-return-29246-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Nov 8 17:08:27 2011 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 E5FC795EE for ; Tue, 8 Nov 2011 17:08:27 +0000 (UTC) Received: (qmail 68121 invoked by uid 500); 8 Nov 2011 17:08:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68096 invoked by uid 500); 8 Nov 2011 17:08:27 -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 68088 invoked by uid 99); 8 Nov 2011 17:08:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 17:08:27 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of jacobhameiri@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 17:08:22 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RNp9V-0000ng-Pl for users@activemq.apache.org; Tue, 08 Nov 2011 09:08:01 -0800 Date: Tue, 8 Nov 2011 09:08:01 -0800 (PST) From: JacobS To: users@activemq.apache.org Message-ID: <1320772081785-4016754.post@n4.nabble.com> In-Reply-To: <1320757107739-4015903.post@n4.nabble.com> References: <1320679886582-3999308.post@n4.nabble.com> <1320750614730-4015627.post@n4.nabble.com> <1320754925760-4015777.post@n4.nabble.com> <1320757107739-4015903.post@n4.nabble.com> Subject: Re: clients are getting disconnected MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit After some more heap dump investigation I found what is eating all the memory. The dump shows that I have more than 2000 TopicSubscription objects and for each one there is an FilePendingMessageCursor, which consumes 265K (the OpenWireFormat object has 2 arrays each consuming 130K). My question is, is there any way to reduce the amount of FilePendingMessageCursor objects ? -- View this message in context: http://activemq.2283324.n4.nabble.com/clients-are-getting-disconnected-tp3999308p4016754.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.