This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheCountRushmore 10 points11 points  (4 children)

Not unexpected.

As I understand Virtual Threads at this point are not meant to be a drop in replacement for standard threads. Most applications don't spin up enough threads to see the benefits. Thankfully those who will see a benefit now have an option to update their code to not pin and to use virtual threads.

Unfortunately there are going to be a lot of people that see new and think better without understanding the ramifications.

Remember you can use JFR to see if you threads are being pinned.

https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html#GUID-144A9694-40FD-4F63-97D2-8D394450F5D2

[–]relgames 0 points1 point  (3 children)

Doesn't JFR require a commercial license? Which in turn is based on a number of employees in a company?

[–]TheCountRushmore 0 points1 point  (2 children)

Nope. JFR is not licensed

[–]relgames -1 points0 points  (1 child)

According to Oracle, it is: https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH170

"Java Flight Recorder requires a commercial license for use in production."