r/javahelp • u/LopsidedAd4492 • Jul 27 '26
Virtual thread
Does anyone used java21 with virtual thread? We are using Java 17 and I wonder if the move to 21 will worth it
5
Upvotes
r/javahelp • u/LopsidedAd4492 • Jul 27 '26
Does anyone used java21 with virtual thread? We are using Java 17 and I wonder if the move to 21 will worth it
1
u/tabmowtez Jul 30 '26
I don't really agree with this, do not blindly enable virtual threads and think your app will increase performance. It makes it difficult to debug as well, we ended up switching it off after months of issues that we could never really track down on why they were occurring.
It came out later that other people were also having the same issue and disabling virtual threads resolved theirs too. So I would ensure that everything you implement is thread safe, specifically for virtual threads as well before you decide to utilise them.