From activemq-commits-return-505-apmail-geronimo-activemq-commits-archive=geronimo.apache.org@geronimo.apache.org Thu Feb 02 16:36:24 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 45735 invoked from network); 2 Feb 2006 16:36:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Feb 2006 16:36:20 -0000 Received: (qmail 78516 invoked by uid 500); 2 Feb 2006 16:36:14 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 78430 invoked by uid 500); 2 Feb 2006 16:36:12 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 78342 invoked by uid 99); 2 Feb 2006 16:36:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 08:36:12 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Feb 2006 08:35:48 -0800 Received: (qmail 44669 invoked by uid 65534); 2 Feb 2006 16:35:26 -0000 Message-ID: <20060202163526.44668.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r374430 [27/45] - /incubator/activemq/site/ Date: Thu, 02 Feb 2006 16:33:52 -0000 To: activemq-commits@geronimo.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/activemq/site/JMX URL: http://svn.apache.org/viewcvs/incubator/activemq/site/JMX?rev=374430&view=auto ============================================================================== --- incubator/activemq/site/JMX (added) +++ incubator/activemq/site/JMX Thu Feb 2 08:31:10 2006 @@ -0,0 +1,399 @@ + + + + + + + + ActiveMQ - JMX + + + + + + + + + + + + + + + +
+ + + + + + +
+

Overview

+ +

Community

+ +

Using ActiveMQ

+ +

Features

+ +

Connectivitiy

+ +

Utilities

+ +

External Tools

+ +

Related Projects

+ +

Support

+ +

Developers

+ +

Tools we use

+ +

Feeds

+ + + + + + + + + +
+
+
+ Site +
+ + + News +
+
+ +
+ + + + + +
+ JMX + + +
+
+ + +
+
+

ActiveMQ 4.x or later has extensive support for JMX to allow you to monitor and control the behaviour of the broker.

+

Currently, one way to monitor AMQ is to enable JMX and use a JMX console.

+

For ActiveMQ 4.x:

+

1. Run a broker setting the broker property useJmx to true.

+

i.e.

+

For xbean configuration

+

+

+
<broker useJmx="true" brokerName="BROKER_1">
+...
+</broker>
+
+

+

 

+

For url configuration

+

+

+
broker:(tcp://localhost:61616)?useJmx=true
+
+

+

 

+

2. Run a JMX console (e.g. jconsole - JMX console included in the JDK <JAVA_HOME>/bin/jconsole.exe)

+

+

3. Connect to the given JMX URL:

+

+

+
jconsole service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
+
+
+

+

 

+

Using the Apache ActiveMQ version on OS X it appears as follows

+

+

For additional references provided below is a brief hierarchy of the mbeans and a listing of the properties, attributes, and operations of each mbeans.

+

ActiveMQ MBeans Hierarchy

+

+

ActiveMQ MBeans Reference

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Mbean Type
+
Properties / ObjectName  Attributes  Operations 
 Broker +
    +
  • Type=Broker
  • +
  • BrokerName=<broker identifier>
  • +
+
+
    +
  • BrokerId
  • +
  • TotalEnqueueCount
  • +
  • TotalDequeueCount
  • +
  • TotalConsumerCount
  • +
  • TotalMessages
  • +
  • TotalMessagesCached
  • +
  • MemoryLimit
  • +
  • MemoryPercentageUsed
  • +
+
+
    +
  • start
  • +
  • stop
  • +
  • terminateJVM
  • +
  • resetStatistics
  • +
  • gc
  • +
+
 Destination +
    +
  • Type=Queue|Topic
  • +
  • Destination=<destination identifier>
  • +
  • BrokerName=<name of broker>
  • +
+
+
    +
  • EnqueueCount
  • +
  • DequeueCount
  • +
  • ConsumerCount
  • +
  • Messages
  • +
  • MessagesCached
  • +
+
+
    +
  • resetStatistics
  • +
  • gc
  • +
+
 NetworkConnector +
    +
  • Type=NetworkConnector
  • +
  • BrokerName=<name of broker>
  • +
+
+
+
+
    +
  • start
  • +
  • stop
  • +
+
 Connector +
    +
  • Type=Connector
  • +
  • ConnectorName=<connector identifier>
  • +
  • BrokerName=<name of broker>
  • +
+
+
    +
  • EnqueueCount
  • +
  • DequeueCount
  • +
+
+
    +
  • start
  • +
  • stop
  • +
  • resetStatistics
  • +
+
 Connection +
    +
  • Type=Connection
  • +
  • Connection=<connection identifier>
  • +
  • BrokerName=<name of broker>
  • +
+
+
    +
  • EnqueueCount
  • +
  • DequeueCount
  • +
  • DispatchQueueSize
  • +
  • Active
  • +
  • Blocked
  • +
  • Connected
  • +
  • Slow
  • +
+
+
    +
  • start
  • +
  • stop
  • +
  • resetStatistics
  • +
+
+

+

Currently, we have just provided basic information to monitor, e.g. number of messages exchanged, consumer count, producer count, etc.

+

Command line utilities are also available to let you monitor ActiveMQ. Refer to ActiveMQ Command Line Tools Reference for usage information.

+
+
+ +   +