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

add memory utilization metrics and support for ZGC/Shenandoah #1203

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

ivantopo
Copy link
Contributor

@ivantopo ivantopo commented Sep 7, 2022

The PR includes three improvements to our GC-related metrics:

  • It categorizes correctly the memory usage regions and gc times for the ZGC and Shenandoah collectors
  • Add a new jvm.memory.utilization metric that tracks the percentage of memory used across old/tenured/single regions. This metric simplifies GC monitoring and alerting because there is no need to do math on the monitoring backend to come up with the usage based on max vs used memory
  • Use ThreadMXBean.getThreadAllocatedBytes(...) to measure allocated bytes instead of trying to infer the allocated bytes from the Eden sizes. This is a more reliable approach, although we might miss some allocation data when threads disappear (which is not typical in common application behavior where a set number of thread pools are allocated and stay constant through the app's lifetime)

@ivantopo ivantopo merged commit d9adad1 into kamon-io:master Oct 5, 2022
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.

1 participant