question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JMX_Exporter not responding

See original GitHub issue

I seem to be getting a similar issue as: https://github.com/prometheus/jmx_exporter/issues/487

jmx_exporter version: 0.16.1

ELK config: -javaagent:/opt/jmxexporter/jmx_prometheus_javaagent-0.16.1.jar=7071:/opt/jmxexporter/elasticsearch-jmx.yml

elasticsearch-jmx.xml:

lowercaseOutputName: true

Once I restart ELK and try to curl -v localhost:7071/ it works the first 1-2 times (I get legitimate metrics) but then it stops and I only get “Connection reset” errors which indicates the jar crashed (?).

Any way to debug this further?

(please don’t repoint me to the prometheus mailing list, I believe this looks like an exporter issue and not related to prometheus directly)

Many thanks in advance! 👍

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fstabcommented, May 26, 2022

Thanks for the detailed report. As you have whitelisted java.lang:type=OperatingSystem it would be good to know:

  • What operating system are you using? Maybe there’s something unexpected in your OS metrics. Let me know what your system is, then I’ll try to reproduce it.
  • Does this have anything to do with Elastic, or does this happen with any Java application on that system? The integration tests in jmx_exporter come with a simple example application. If you build jmx_exporter from source with ./mvnw package the example application will be created in ./integration_tests/jmx_example_application/target/jmx_example_application.jar. It would be great if you could run the example application instead of Elastic with the Java agent attached to see if you get the same behavior:
    java -javaagent:/opt/jmx_exporter/jmx_prometheus_javaagent-0.17.0.jar=8088:/opt/jmx_exporter/java_process.yml -jar jmx_example_application.jar
    
1reaction
fstabcommented, Dec 17, 2021

Here’s an idea how to debug this: You could try to figure out whether this is caused by a specific JMX bean.

Use the whitelistObjectNames configuration so that jmx_exporter just scrapes a single bean. If that works, add more names to whitelistObjectNames until you learn which bean causes this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jmx_exporter not sending back jvm_ metrics - Stack Overflow
Any help would be appreciated. prometheus · grafana · jmx · jmx-exporter · Share.
Read more >
Error in Kafka startup with the JMX exporter - java.lang ...
It's probably because -javaagent config was loaded twice or more in env loading. It happens when a variable is set like this in...
Read more >
JMX Exporter in HTTP server - Google Groups
FYI, JMX Exporter java agent PoC is working fine but we are interested to Pull ... We are not able to see metrics...
Read more >
Solved: Re: AEM + Prometheus JMX Exporter
Some JMX beans in AEM don't properly close their JCR session, which causes the errors you see. I opened some Daycare issues to...
Read more >
bitnami/jmx-exporter - Docker Image
The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found