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 4B6AB7E25 for ; Tue, 9 Aug 2011 20:41:45 +0000 (UTC) Received: (qmail 34990 invoked by uid 500); 9 Aug 2011 20:41:44 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 34931 invoked by uid 500); 9 Aug 2011 20:41:44 -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 34923 invoked by uid 99); 9 Aug 2011 20:41:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 20:41:43 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,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 kjagadeeshkumar@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, 09 Aug 2011 20:41:38 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qqt70-000667-0l for users@activemq.apache.org; Tue, 09 Aug 2011 13:41:18 -0700 Date: Tue, 9 Aug 2011 13:41:18 -0700 (PDT) From: kjagadeeshkumar To: users@activemq.apache.org Message-ID: <1312922478011-3731194.post@n4.nabble.com> Subject: 5.4.2 : [Lorg.apache.activemq.command.DataStructure MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, Recently we upgraded to AMQ5.4.2 and jmap histo on the broker shows that the Array of DataStructure objects is using more than 75% of total heap, with each instance weighing around 52-55K(in prod). num #instances #bytes class name 1: 12054 656514208 [Lorg.apache.activemq.command.DataStructure; Each array is so huge and contains about 16383 DataStructure objects. In the OpenWireFormat , i see the below two. MARSHAL_CACHE_SIZE is Short.MAX_VALUE / 2; private DataStructure marshallCache[] = new DataStructure[MARSHAL_CACHE_SIZE]; private DataStructure unmarshallCache[] = new DataStructure[MARSHAL_CACHE_SIZE]; Though this piece of code is same in AMQ 5.2, we see it there only 1024 objects in the array and the array size is just about 4K or so. Help me out. Thanks in advance. -jagadeesh- -- View this message in context: http://activemq.2283324.n4.nabble.com/5-4-2-Lorg-apache-activemq-command-DataStructure-tp3731194p3731194.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.