Skip to content

Project Loom virtual threads investigation #3650

@shakuzen

Description

@shakuzen

I was thinking of Loom and the usefulness of this for virtual thread. Also if it is possible to distinguish between virtual and non-virtual threads.

Originally posted by @jonatan-ivanov in #3562 (comment)

We should look at the latest iteration of the Project Loom virtual threads implementation in second Preview in JDK 20 scheduled for JDK 21 as JEP 444.

User instrumentation

How will users instrument their usage of virtual threads if desired?

Library instrumentation

Are there any changes required to our instrumentation of libraries that will use virtual threads?

Thread metrics

We have existing metrics for threads in JvmThreadMetrics, based on ThreadMXBean. Do these cover virtual threads? Are there any new metrics we should provide for virtual threads?

Virtual thread usage in Micrometer

Lastly, is there anywhere it makes sense for us to use virtual threads when running Micrometer on JDK 21+?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions