-
Notifications
You must be signed in to change notification settings - Fork 989
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
Support ZGC in JvmGcMetrics #2305
Comments
There were some assumptions in JvmGcMetrics that the garbage collector was generational, with a designated young and old region. ZGC and Shenandoah are examples of OpenJDK garbage collectors that are not generational. GC metrics should be properly recorded with these changes. Resolves micrometer-metrics#1861 Resolves micrometer-metrics#2305
There were assumptions in JvmGcMetrics that the garbage collector was generational, with designated young and old regions. ZGC and Shenandoah are examples of OpenJDK garbage collectors that are not generational. GC metrics should be properly recorded for them with these changes. Resolves #1861 Resolves #2305
Hi @shakuzen - sorry to bug on this old post with this question, but I recently upgraded to zgc for a repo at work and am wondering what are the metrics available for zgc.
These are the only ones I see. Are there more metrics I should be seeing? Including any other |
Not until more actions and causes happen in your application after |
Ah yeah that clears up- Let me go back and look into this. Are there other notifications which are emitted on GC that I know I should look out for when a GC is run? |
We don't keep an exhaustive list because it is up to what the garbage collector has implemented, which can change between versions of the JVM. Unfortunately, I'm not aware of good documentation on this from each collector either. |
Similar to #1861 for ZGC. See the OpenJDK Wiki for ZGC for more information on it. In addition to GC pause time metric (jvm.gc.pause) which should already work, we should support the following when using ZGC:
The text was updated successfully, but these errors were encountered: