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

JVM metrics not showing up until 10 minutes after service starts up #292

Closed
brentm5 opened this issue Feb 1, 2019 · 3 comments
Closed
Milestone

Comments

@brentm5
Copy link

brentm5 commented Feb 1, 2019

We have have been trying to get custom metrics from resin to show up with the new jmxfetch feature in the APM agent. We are able to get jvm metrics immediately however our resin metrics do not show up for ~ 10 minutes.

It appears that when the jmxfetch thread starts the resin process has not fully initialized so the resin beans are not available. After 10 minutes the beans are refreshed and new ones added. It appears we can get slightly around this by changing the interval to be shorter with the following options however this seems less than ideal.

-Ddd.jmxfetch.refresh-beans-period=30

Is there anyway to delay the initial start of the jmx fetch process or double check in the beginning. I am concerned that setting the beans refresh period to run more frequently could have performance implications.

@randomanderson
Copy link
Contributor

I'm transferring this issue to the JMXFetch repository. With the feature request being:

Ability to add a customizable delay to the initial bean discovery

@randomanderson randomanderson transferred this issue from DataDog/dd-trace-java May 1, 2020
@essobedo
Copy link

essobedo commented Apr 29, 2021

Fixed by #349 and DataDog/dd-trace-java#2659, you can use the System property jmxfetch.initial-refresh-beans-period to set the initial period

@olivielpeau
Copy link
Member

Thanks @essobedo for updating this issue, this is indeed configurable in the Datadog Agent since v7.26.0/v6.26.0 (with the option refresh_beans_initial option documented here, and should be available in the Java APM client in v0.79.0.

Therefore I'll go ahead and close this issue.

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

No branches or pull requests

4 participants