Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics endpoint is slow #175

Closed
jayme-github opened this issue Aug 22, 2017 · 2 comments · Fixed by #206
Closed

Metrics endpoint is slow #175

jayme-github opened this issue Aug 22, 2017 · 2 comments · Fixed by #206

Comments

@jayme-github
Copy link
Contributor

jayme-github commented Aug 22, 2017

I've added jmx_exporter to a WildFly 10 setup and notices that the /metrics endpoint is pretty slow (in relation to various other endpoints from applications and exporters). For me /metrics returns data in around 7-10 seconds (without any user load on the server) and would occasionally exceed the prometheus default scrape timeout of 10 seconds.

If this is normal (I'm new to all this Java/JMX/WildFly stuff) a short note in the readme would be cool (at least for people like me 😃 ).

@brian-brazil
Copy link
Contributor

This is normal, JMX is not particularly efficient.

@finkr
Copy link
Contributor

finkr commented Nov 27, 2019

As mentioned by Brian Brazil: JMX is not particularly efficient.

Using whitelistObjectNames, It is often possible to dramatically speed-up things (dropped from 15 seconds to 0.9s. in my use case).
See -> #284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants