# Elasticsearch - JMX Exporter

**URL:** <https://discuss.elastic.co/t/elasticsearch-jmx-exporter/268332>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-security, docker\
**Created:** [March 25, 2021, 11:53am UTC](https://discuss.elastic.co/t/elasticsearch-jmx-exporter/268332 "2021-03-25T11:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua3](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Joshua3](https://discuss.elastic.co/u/Joshua3)\
**Post date:** [March 25, 2021, 11:53am UTC](https://discuss.elastic.co/t/elasticsearch-jmx-exporter/268332/1 "2021-03-25T11:53:25Z")

</div>

Hello, i'm using JMX Exporter to get MBeans from Elasticsearch running in Docker container.

This is part of Docker environment to parsing in to container to run Java JMX exporter as JavaAgent

```auto
-e ES_JAVA_OPTS=-javaagent:/prometheus/jmx_prometheus_javaagent-0.13.0.jar=4444:/prometheus/prometheus-jmx-config.yaml

```

When i start Elasticsearch, i can see on port 4444 all data from JMX Exporter.  
BUT when Elasticsearch load all modules (I think X-Pack security will be the suspect) JMX Exporter stop working and responding: **The connection was reset.**

I tried this Elasticsearch settings in elasticsearch.yml

```auto
xpack.license.self_generated.type: basic
xpack.security.enabled: false
xpack.monitoring.enabled: false
xpack.ml.enabled: false

```

But always the same conclusion. Inoperative JMX Exporter after loading modules.

Every help and idea will be much appreciated.

---

<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:** [April 22, 2021, 11:53am UTC](https://discuss.elastic.co/t/elasticsearch-jmx-exporter/268332/2 "2021-04-22T11:53:42Z")

</div>

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