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

Safer polling of memory metrics #7694

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Jan 12, 2023

I noticed that on some JVMs getCollectionUsage returns with null. This PR make those metrics reported as 0 instead of failing with an NPE.

Note:
I don't have proof but this may be also the reason for some reported missing JVM metrics - maybe in case one of a collection of polling metrics fails the rest is not executed and the error is not reported anywhere?

@adamgfraser adamgfraser merged commit 7cc18ea into zio:series/2.x Jan 12, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants