ForkJoinPool-3-worker pool size never size down

Alan Bateman Alan.Bateman at oracle.com
Fri Jan 12 12:38:10 UTC 2024


On 12/01/2024 12:29, 何品(虎鸣) wrote:
>
> Hi I know, it was suggested that not pooling the VirtualThread, when I 
> replace my old executors to use the fancy new 
> `VirtualThreadExecutorFactory` and with the
> `jdk.virtualThreadScheduler.maxPoolSize` set to 2500
>
> after some load testing and the thread size grow to 2205
>
> and even the stress testing is removed from the system , the thread 
> never adjust to a smaller one.
>
There are changes in JDK 22 [1] so that trimming happens a lot more 
quickly when the pool is idle.

-Alan

[1] https://bugs.openjdk.org/browse/JDK-8319662
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240112/6d541f3e/attachment.htm>


More information about the loom-dev mailing list