DX Application Performance Management

Expand all | Collapse all

Monitoring ActiveMQ

  • 1.  Monitoring ActiveMQ

    Posted Jul 04, 2012 02:55 AM
    Hi all,

    Looking for a bit of advice really. We have an application flow which has data fed in via HTTP calls, or HTTP polls, the data is then pushed onto ActiveMQ queues. We then have applications that consume the queues and rely either to other queues or make outbound HTTP calls. The question is how best to instrument this such that the various elements appear in the APM 9.1 application map? We are running in Spring TC server instances, so Tomcat 6 and 7.

    Has anyone done anything with ActiveMQ monitoring within APM?



  • 2.  RE: Monitoring ActiveMQ

    Posted Jul 12, 2012 05:13 PM
    Hello Community,

    Any advice here for Mick?


  • 3.  RE: Monitoring ActiveMQ

    Broadcom Employee
    Posted Jul 20, 2012 01:32 PM
    Since ActiveMQ is based on JMS Component, are you getting any benefits from monitoring JMS under your agent(s)?

  • 4.  RE: Monitoring ActiveMQ
    Best Answer

    Posted Jul 26, 2012 04:45 PM
    We have monitored Active MQ with 8.x and its pretty straight forward using standalone java agent. I would imagine 9.x is same.

    here is what we used in the activeMQ startup script

    WILY_OPTS="-javaagent:/home/snoorani/Documents/Wily-General/Introscope8.2.2.0StandaloneAgent/wily/Agent.jar -Dcom.sun.management.jmxremote -Dcom.wily.introscope.agentProfile=/home/snoorani/Documents/Wily-General/Introscope8.2.2.0StandaloneAgent/wily/IntroscopeAgent.profile -cp /home/snoorani/Documents/Wily-General/Introscope8.2.2.0StandaloneAgent/wily:."

    use tomcat agent for TC server and if your application uses spring and if 9.x doesn't instrument that let me know I will upload spring.pbd

  • 5.  RE: Monitoring ActiveMQ

    Broadcom Employee
    Posted Jul 26, 2012 08:16 PM
    There is a Spring 2.x PBD already in the Community Documents.
    Is yours newer?

  • 6.  RE: Monitoring ActiveMQ

    Posted Jul 26, 2012 11:15 PM
    Havent seen the community one yet but mines probably the same or older because I got mine from CA long time back

  • 7.  RE: Monitoring ActiveMQ

    Posted Sep 13, 2013 01:33 PM

    I was able to deploy the standalone agent (v9.1.4.0) for ActiveMQ but in ActiveMQ's log, I'm seeing the error below. I think this error has to do with "jetty". Sergio's Tuesday's Tips mentioned something similar (click here). I think all it needs is a jetty parameter to com.wily*.

    2013-09-12 10:55:50,427 | WARN | 64-167 Selector0 | nio | lipse.jetty.util.log.JavaUtilLog 70 | 75 - org.eclipse.jetty.util - 7.6.7.v20120910 |
    java.lang.NoClassDefFoundError: com/wily/introscope/agent/trace/IMethodTracer
    at org.eclipse.jetty.server.AbstractHttpConnection.<init>(AbstractHttpConnection.java:157)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.AsyncHttpConnection.<init>(AsyncHttpConnection.java:50)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.nio.SelectChannelConnector.newConnection(SelectChannelConnector.java:285)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newConnection(SelectChannelConnector.java:325)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.nio.SelectChannelConnector.newEndPoint(SelectChannelConnector.java:272)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.newEndPoint(SelectChannelConnector.java:331)[81:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.createEndPoint(SelectorManager.java:841)[76:org.eclipse.jetty.io:7.6.7.v20120910]
    at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:496)[76:org.eclipse.jetty.io:7.6.7.v20120910]
    at org.eclipse.jetty.io.nio.SelectorManager$1.run(SelectorManager.java:290)[76:org.eclipse.jetty.io:7.6.7.v20120910]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[75:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[75:org.eclipse.jetty.util:7.6.7.v20120910]
    at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
    Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.trace.IMethodTracer not found by org.eclipse.jetty.server [81]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_33]

  • 8.  RE: Monitoring ActiveMQ

    Broadcom Employee
    Posted Sep 13, 2013 01:56 PM
    If ActiveMQ does use Apache Sling/OSGi, you will need to make the same modifications to the runtime like you would on JBoss. Instructions for making the changes are available in the compatibility guide.

  • 9.  RE: Monitoring ActiveMQ

    Broadcom Employee
    Posted Sep 16, 2013 02:57 PM
    I just installed ActiveMQ 5.8 and default APM agent with no issues.

    Just be aware that the documentation is incorrect for starting it with the demo application. When running on Windows, remove any reference to "console" from the startup commands.

  • 10.  Re: Monitoring ActiveMQ

    Posted Apr 11, 2019 03:19 PM

    So for APM 10.5.2 SP2.........would this - StandAlone Java Agent deployment with proper config - still apply as a solution?

  • 11.  Re: Monitoring ActiveMQ

    Posted Apr 15, 2019 02:41 PM

    In the process of installing IntroscopeStandaloneAgentPP10.5.2.52. I came to the following prompt in the install process...

    CA APM Standalone Agents

    Select the monitoring options to install.

    1- Environment Performance Agent
    2- CA APM for Oracle Database
    3- CA APM for TIBCO Enterprise Message Service
    4- CA APM for webMethods Broker
    5- CA APM for IBM WebSphere MQ and IBM WebSphere Message Broker
    6- CA APM for Web Servers




    Which option would best fit for what I need for this agent to do (Monitor Apache ActiveMQ)?


    Thanks in advance.

  • 12.  Re: Monitoring ActiveMQ

    Broadcom Employee
    Posted Apr 19, 2019 01:57 PM

    I met with Manish yesterday to discuss this strategy.


    From your application layer, you can monitor the communications via JMS. As a matter of fact, the latest 10.7 agent has instrumentation to monitor those AMQ requests.


    From the broker, you will need to download and implement our FOSS solution. You can find it here => https://github.com/CA-APM/ca-apm-fieldpack-activemq-broker/releases