Skip to content

Commit e14b59c

Browse files
update Virtual Threads docs
1 parent 8827e29 commit e14b59c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/spring-application.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ If you're running on Java 21 or up, you can enable virtual threads by setting th
405405
Before turning on this option for your application, you should consider https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html[reading the official Java virtual threads documentation].
406406
In some cases, applications can experience lower throughput because of "Pinned Virtual Threads"; this page also explains how to detect such cases with JDK Flight Recorder or the `jcmd` CLI.
407407

408+
When utilizing virtual threads, we advise upgrading to Java 24 or later. According to https://openjdk.org/jeps/491[JEP 491], Java 24 allows synchronizing virtual threads without pinning; however, pinned virtual threads still occurs when a native method or a foreign function is called on.
409+
408410
NOTE: If virtual threads are enabled, properties which configure thread pools don't have an effect anymore.
409411
That's because virtual threads are scheduled on a JVM wide platform thread pool and not on dedicated thread pools.
410412

0 commit comments

Comments
 (0)