Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90857200B4F for ; Tue, 26 Jul 2016 18:05:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8A693160A75; Tue, 26 Jul 2016 16:05:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D0263160A69 for ; Tue, 26 Jul 2016 18:05:21 +0200 (CEST) Received: (qmail 52316 invoked by uid 500); 26 Jul 2016 16:05:20 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 52307 invoked by uid 99); 26 Jul 2016 16:05:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 16:05:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6F3A92C0059 for ; Tue, 26 Jul 2016 16:05:20 +0000 (UTC) Date: Tue, 26 Jul 2016 16:05:20 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-6375) Add non-blocking subscription statistics to KahaDB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Jul 2016 16:05:22 -0000 [ https://issues.apache.org/jira/browse/AMQ-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15394005#comment-15394005 ] ASF subversion and git services commented on AMQ-6375: ------------------------------------------------------ Commit cf3d419528e5596c1226b5ca11ed37e8039bc006 in activemq's branch refs/heads/master from [~cshannon] [ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=cf3d419 ] https://issues.apache.org/jira/browse/AMQ-6375 Adding non-blocking metrics to KahaDB to track message counts and sizes for subscriptions. Turned off by default but can be enabled on the KahaDBPersistenceAdapter > Add non-blocking subscription statistics to KahaDB > -------------------------------------------------- > > Key: AMQ-6375 > URL: https://issues.apache.org/jira/browse/AMQ-6375 > Project: ActiveMQ > Issue Type: New Feature > Components: Broker, KahaDB > Affects Versions: 5.13.4 > Reporter: Christopher L. Shannon > Assignee: Christopher L. Shannon > > Currently KahaDB TopicMessageStore supports returning the messageCount and messageSize for subscription but this requires locking the index and iterating to compute the information. I have a use case where I query this information regularly for the status of the broker and the performance takes a hit because of the locking. > There should be an option to enable statistics counters to keep track of this information so that it can be queried without locking, such like the store currently tracks the total count and size but for each subscription also. > This should be disabled by default because there will be some overhead for computing the metrics if there are a lot of subscriptions in the store. -- This message was sent by Atlassian JIRA (v6.3.4#6332)