Incorporate new Virtual Threads JFR events into JFR viewer
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 3.3k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
JEP 444: Virtual Threads adds several new events JFR:
jdk.VirtualThreadStartandjdk.VirtualThreadEndindicate virtual thread start and end. These events are disabled by default.jdk.VirtualThreadPinnedindicates that a virtual thread was parked while pinned, i.e., without releasing its platform thread (see above). This event is enabled by default, with a threshold of 20ms.jdk.VirtualThreadSubmitFailedindicates that starting or unparking a virtual thread failed, probably due to a resource issue. This event is enabled by default.
It would be great if this new JFR events can be used to provide info about Virtual threads in JFR viewer.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading JEP 444 and inspecting the JFR viewer's existing event handling and display paths. Add support for the listed virtual-thread events so the viewer provides useful virtual-thread information, then verify that each event is recognized and presented appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100