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 C40C110E28 for ; Wed, 4 Sep 2013 21:16:37 +0000 (UTC) Received: (qmail 67320 invoked by uid 500); 4 Sep 2013 21:16:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 67284 invoked by uid 500); 4 Sep 2013 21:16:37 -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 67276 invoked by uid 99); 4 Sep 2013 21:16:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 21:16:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 21:16:33 +0000 Received: by mail-la0-f47.google.com with SMTP id eo20so851257lab.34 for ; Wed, 04 Sep 2013 14:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Oh+yBT4V6cRI4TT7m65O84yUotdurAkRr2t+XxTxtlw=; b=RWZJrv7UqGtj5X2UROlEUVwKoVoIVauY71uTpyrI2hxZu/EBn1NLypSqOTjvfKZLmx TNh83XKfTupeBmigP9e0+qwl2QXoBPfwD0gp/X4+hn5IrCL+SF0w/V2GosIrmZmMYUlJ PTP9oBGEAP4Z5nOsWI4ij9xA9fj7mZD48tRpG8lf+oe0AUrQ/powpTRREozMdfBlhNuS VOiADWPXbE5We3vlVNBSblHTGsOnV9UTMybSzBXWZzNL4rd5+gobnzB6pb0PEWv1ciWC U/JxDXCiiTidjKuQw8dlCH0dNhYx4VAzmVPetWh6uPWjrb0xmVmcnL+hqRE9LkU7wEZe d86w== MIME-Version: 1.0 X-Received: by 10.112.143.3 with SMTP id sa3mr4044125lbb.12.1378329371486; Wed, 04 Sep 2013 14:16:11 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Wed, 4 Sep 2013 14:16:11 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Sep 2013 14:16:11 -0700 Message-ID: Subject: Re: About JMX counters From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e011827ae922d5d04e59550b5 X-Virus-Checked: Checked by ClamAV on apache.org --089e011827ae922d5d04e59550b5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Inline.... On Wed, Sep 4, 2013 at 6:13 AM, Jose Mar=EDa Zaragoza wrote: > Hi: > > I'm using ActiveMQ 5.8 and I'm having a look to JMX counters > I only use topics as destination > > I've got a questions: > > 1) > > ExpiredCount is always 0, in spite of I send all the messages with > TTL flag ( 15000 ms a.k.a 15 s) > > MessageProducer producer =3D session.createProducer(destination); > producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT); > producer.setTimeToLive(15000); > > What is shown by this counter ? > Can I be sure that message are expired ? > Give a look to the individual subscriptions and not the topic itself. > > > > 2) MemoryUsagePortion is always 1.0 , > > what does it mean ? > usage portion is always about parent-child relationship. So a subscription using "1.0" will use 100% of it's allocation in the parent. > > > 3) Sometimes I've observed counters with a negative value , how is > this possible ? > For example: EnqueueCount with -4 > Take a look here: EnqueueCount is a temporal value, ie, it's related only to when the broker was started. check here: http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html > > Can I trust in these counters ? Which one are reliable ? > > 4) What are the most important counters for watching them ( in > performace terms ) ? > > > Thanks and regards > --=20 *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --089e011827ae922d5d04e59550b5--