-
Notifications
You must be signed in to change notification settings - Fork 565
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
Evaluate adding metrics for virtual threads #9533
Comments
It looks like Loom EA builds include |
Another possibility would be for Helidon to add a JFR We'd need to do some investigation to understand whether these are instance or duration events, what users would need to do to get this information (would there be a separate component users would add or would this be part of the current system-provided metrics component), etc. It might also be feasible to allow users to configure which JRF events Helidon would publish as metrics, as |
Based on what we have seen , below JFR events are supported for Virtual Threads. Three of them are Instant and 1 of them is duration. Duration Eventjdk.VirtualThreadPinned Instant Eventsjdk.VirtualThreadStart But none of them give info on current carrier thread statistics, which is available from "Thread.vthread_summary" or. "Thread.vthread_scheduler" Sample output : Default virtual thread scheduler: This is a critical information , and need to be available as Metric |
Environment Details
This enhancement request is for tracking generation of additional metrics that will provide Helidon users information about virtual thread usage. As an example, current metrics provided in JVM include a count of active Platform Threads. Helidon users would like a metric that provides similar count of active of in-flight virtual threads. Users might also benefit from a runnig tally of current pinned threads.
The text was updated successfully, but these errors were encountered: