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 8201910C11 for ; Fri, 31 Jan 2014 06:44:25 +0000 (UTC) Received: (qmail 4153 invoked by uid 500); 31 Jan 2014 06:44:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 3244 invoked by uid 500); 31 Jan 2014 06:44:17 -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 3235 invoked by uid 99); 31 Jan 2014 06:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 06:44:15 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 06:44:10 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W97oz-0002NN-BZ for users@activemq.apache.org; Thu, 30 Jan 2014 22:43:25 -0800 Date: Thu, 30 Jan 2014 22:43:10 -0800 (PST) From: artnaseef To: users@activemq.apache.org Message-ID: <1391150590334-4677148.post@n4.nabble.com> In-Reply-To: <1391146856843-4677144.post@n4.nabble.com> References: <1390553547046-4676729.post@n4.nabble.com> <1390566311285-4676741.post@n4.nabble.com> <1390568578953-4676748.post@n4.nabble.com> <1390570286585-4676752.post@n4.nabble.com> <1390923663727-4676902.post@n4.nabble.com> <1391146856843-4677144.post@n4.nabble.com> Subject: Re: Current Connection Count for ActiveMQ broker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hey Anuj. The "best" way depends on a lot of factors. The method you posted will work. It's not a heavy load on the broker unless it's being called rapidly. I recommend measuring it to be comfortable with the overhead - a tool like jstat or a JMX client can help you get comfortable. My recommendation for a path is to avoid adding code to the broker and use jmxtrans to grab the same statistics using JMX, as described earlier in the thread. Or, find and use a similar alternative. Some advantages to that route: * no code to write * jmxtrans can feed OpenTSDB * jmstrans also support many other outputs (e.g. Nagios and Ganglia) * OpenTSDB keeps metrics for a long time and makes it feasible to report on history jmxtrans is here: https://github.com/jmxtrans/jmxtrans. For some reason, the OpenTSDBWriter for jmxtrans always eludes me when I look for it. It's out there somewhere... That's my idea of a better way to go. Hope this helps. -- View this message in context: http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4677148.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.