# How to monitor java threads and ActiveMQ

**URL:** <https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087>\
**Category:** Elasticsearch\
**Created:** [September 1, 2017, 6:01am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087 "2017-09-01T06:01:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay\_garg](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vinay\_garg](https://discuss.elastic.co/u/vinay_garg)\
**Post date:** [September 1, 2017, 6:01am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/1 "2017-09-01T06:01:46Z")

</div>

Hi Team,

Currently i'm using Kibana,Elasticsearch,Logstash 5.5.2.  
Can any suggest how can i monitor ActiveMQ and threads by ELK? I have multiple routes in my fuse environment. I have to monitor each route threads using ELK.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [September 3, 2017, 1:10am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/2 "2017-09-03T01:10:39Z")

</div>

What kind of metrics from threads are available? Are they published via JMX?

---

<div class="post-metadata">

**Author:** ![vinay\_garg](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vinay\_garg](https://discuss.elastic.co/u/vinay_garg)\
**Post date:** [September 4, 2017, 4:13pm UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/3 "2017-09-04T16:13:40Z")

</div>

I have to monitor the memory and thread of each route via JMX. Is it possible to monitor by metricbeat?

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [September 4, 2017, 4:34pm UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/4 "2017-09-04T16:34:38Z")

</div>

Yes. Take a look into [https://www.elastic.co/blog/brewing-in-beats-add-support-for-jolokia-lmx](https://www.elastic.co/blog/brewing-in-beats-add-support-for-jolokia-lmx) and also [https://www.elastic.co/guide/en/beats/metricbeat/5.6/metricbeat-module-jolokia.html](https://www.elastic.co/guide/en/beats/metricbeat/5.6/metricbeat-module-jolokia.html)

---

<div class="post-metadata">

**Author:** ![vinay\_garg](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vinay\_garg](https://discuss.elastic.co/u/vinay_garg)\
**Post date:** [September 15, 2017, 9:22am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/5 "2017-09-15T09:22:25Z")

</div>

Hey Thanks,  
It is useful.  
I have even monitored the ActiveMQ.

But how can i visualise the Enqueue, Dequeue, DispatchCount with respect to QueueName?

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [September 15, 2017, 1:15pm UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/6 "2017-09-15T13:15:20Z")

</div>

Unfortunately I am not really familiar with ActiveMQ metrics, so I can not tell you exactly where to get this data.

As long as you can make ActiveMQ publish these metrics using JMX, then you can monitor it.

---

<div class="post-metadata">

**Author:** ![vinay\_garg](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vinay\_garg](https://discuss.elastic.co/u/vinay_garg)\
**Post date:** [September 16, 2017, 5:25am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/7 "2017-09-16T05:25:36Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 14, 2017, 5:25am UTC](https://discuss.elastic.co/t/how-to-monitor-java-threads-and-activemq/99087/8 "2017-10-14T05:25:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
