# Jolokia module not found exception

**URL:** <https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 29, 2018, 3:07pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999 "2018-06-29T15:07:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [June 29, 2018, 3:07pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/1 "2018-06-29T15:07:48Z")

</div>

Hi All,

I have installed jolokia agent and attached to the java process successfully . but in metric beat yml i have specified following configuration and getting error please advice me how to install jolokia module in metric beta.

configuration file:

- module: jolokia  
metricsets: ["jmx"]  
enabled: true  
period: 10s  
namespace: "metrics"  
hosts: ["10.10.1.36:8778"]  
jmx.mappings:
  - mbean: 'java.lang:type=Runtime'  
attributes:
    - attr: Uptime  
field: uptime

  - mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'  
attributes:
    - attr: CollectionTime  
field: gc.cms\_collection\_time
    - attr: CollectionCount  
field: gc.cms\_collection\_count

  - mbean: 'java.lang:type=Memory'  
attributes:
    - attr: HeapMemoryUsage  
field: memory.heap\_usage
    - attr: NonHeapMemoryUsage  
field: memory.non\_heap\_usage

getting following error on running metric beat

Exiting: 1 error: metricset 'jolokia/jmx' is not registered, module not found

please help me in this

thanks  
phani

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [June 29, 2018, 3:17pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/2 "2018-06-29T15:17:24Z")

</div>

Hello @Phani_Nadiminti what version of Metricbeat are you running?  
You can get the current version by running:

```auto
./metricbeat version

```

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [June 29, 2018, 3:33pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/3 "2018-06-29T15:33:39Z")

</div>

Hi @pierhugues,

metric beat version is

metricbeat version 5.1.2 (amd64), libbeat 5.1.2

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [June 29, 2018, 3:40pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/4 "2018-06-29T15:40:02Z")

</div>

@Phani_Nadiminti

The metricbeat jolikia/jmx module was added in 5.4.0 but has gone through multiple improvements since the first release. I strongly suggest that you install the latest version of our stack which is now 6.3.0.

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [June 29, 2018, 3:44pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/5 "2018-06-29T15:44:23Z")

</div>

Hi @pierhugues

Okay thank you i will try it and post the results.

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [July 2, 2018, 10:52am UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/6 "2018-07-02T10:52:21Z")

</div>

Hi @pierhugues,

Thank you for advice it is working now after using the current beats version i am able to pull jvm metrics to elasticsearch.

---

<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:** [July 30, 2018, 12:52pm UTC](https://discuss.elastic.co/t/jolokia-module-not-found-exception/137999/7 "2018-07-30T12:52:30Z")

</div>

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