Monitoring the Petals SE ASE
The following indicators are interesting:
Monitoring with basic tools
JVisualVMAs ActiveMQ is provided with a JMX API, it is very easy to connect the JVisualVM to the ActiveMQ's JVM. See http://activemq.apache.org/jmx.html.
Command line tools of ActiveMQActiveMQ is provided with a command-line tools to get statistics: activemq-admin For example, use the following command to get the number of the requests waiting to be sent to the target service provider: activemq-admin query --objname Type=Queue,Destination=testQueue --view QueueSize | grep QueueSize Monitoring with NagiosSeveral options are available to monitor ActiveMQ using Naggios:
Monitoring with Cacti
Monitoring with MuninA plugin ActiveMQ for Munin exists: http://munin-activemq.sourceforge.net. It is very easy to install it on a Debian-based system using the Debian package. Don't forget to install Munin previously. sudo dpkg -i munin-java-activemq-plugins_0.0.4_i386.deb Pre-requisitesThe plugin ActiveMQ for Munin requires a remote JMX connection to the ActiveMQ server, so you needs to configure your ActiveMQ to enable the JMX connector: <beans ... > <broker xmlns="http://activemq.apache.org/schema/core" ... > ... <managementContext> <managementContext createConnector="true"/> </managementContext> ... </broker> ... </beans> ConfigurationEdit the file /etc/munin/plugin-conf.d/activemq_ to add the queues to monitor in parameter env.DESTINATIONS of the section ?activemq*. : [activemq_*] ## The hostname to connect to. ## Default: localhost #env.JMX_HOST localhost ## The port where the JMX server is listening ## Default: 1099 #env.JMX_PORT 1099 ## The username required to authenticate to the JMX server. ## When enabling JMX for a plain ActiveMQ install, no authentication is needed. ## The default username for JMX run by ServiceMix is 'smx' ## Default: #env.JMX_USER smx ## The password required to authenticate to the JMX server. ## The default password for JMX run by ServiceMix is 'smx' ## Default: #env.JMX_PASS smx ## Space separated list of destinations to create graphs for. ## Default: env.DESTINATIONS Queue:foo Queue:bar ## You can override certain configuration variables for specific plugins #[activemq_traffic] #env.DESTINATIONS Topic:MyTopic Queue:foo Graph samplesTraffic sample
|
Table of contents Contributors
No contributors found for: authors on selected page(s)
|
