Debugger overhead for virtual threads creation
Egor Ushakov
egor.ushakov at jetbrains.com
Tue Apr 1 17:14:43 UTC 2025
Hi everyone!
Is it expected that with the debugger attached creating virtual threads
is much slower?
We're getting bugs like: https://youtrack.jetbrains.com/issue/IDEA-365900
And I can reproduce it easily with jdb...
Just attaching the debugger immediately slows down virtual threads
creation significantly.
>java -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=8000 app
...
6808805 (1.2046688E7 threads per second)
...
after >jdb -attach 8000
...
30215 (95986.055 threads per second)
...
Thanks,
Egor
More information about the serviceability-dev
mailing list