Loom and high performance networking
Alan Bateman
alan.bateman at oracle.com
Wed Aug 14 19:16:23 UTC 2024
On 14/08/2024 16:47, Robert Engels wrote:
> :
>
> Which leads me to the question does Java need a better (or dynamic)
> way of determining the optimum parallelism based on load? It seems the
> only way to set the parallelism is at startup, and it is constant.
>
VirtualThreadSchedulerMXBean provides a monitoring and management
interface to the virtual thread scheduler. It exposes the current
parallelism and allows it be changed. There are also methods to get the
thread count, and estimates for the current number of carriers and
number of virtual threads queued to execute. It may potentially be used
to dynamically adjust parallelism but nothing is using it at this time.
-Alan
More information about the loom-dev
mailing list