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

Avoid 0 duration GC event times #1170

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

DanielThomas
Copy link
Member

We noticed :dist-avg under 1ms for ZGC and getDuration is in milliseconds, so we must be regularly seeing events that start and end in the same millisecond:

https://github.com/openjdk/jdk/blob/3b283543c33df8c225e10b9186b7bc3cefd1a347/src/jdk.management/share/classes/com/sun/management/GcInfo.java#L140-L147

There are few other problems with these metrics and the concurrent garbage collectors, but I'm intentionally avoiding looking at those because we expect to have better ways of measuring GC overhead/pressure in upcoming releases.

@brharrington brharrington added this to the 1.8.3 milestone Nov 14, 2024
@brharrington brharrington merged commit 20f60b4 into main Nov 14, 2024
1 check passed
@brharrington brharrington deleted the dannyt/gcinfo-zero-duration branch November 14, 2024 03:43
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.

2 participants