Techniques for debugging threading issues with Virtual Threads

Alan Bateman alan.bateman at oracle.com
Wed Nov 20 10:19:15 UTC 2024


On 20/11/2024 10:02, Dr Heinz M. Kabutz wrote:
>
> We can discover deadlocks without a thread dump using the 
> ThreadMXBean, but currently that does not work for virtual threads.
>
The ThreadMXBean API doesn't scale to a large number of threads, it also 
requires a mapping from threadID to Thread that is also a challenge. 
This is the reason it was re-specified in JDK 19 to only support 
platform threads.

-Alan


More information about the loom-dev mailing list