jstack, profilers and other tools
Alan Bateman
Alan.Bateman at oracle.com
Tue Jul 12 08:48:28 UTC 2022
On 11/07/2022 22:13, Rob Bygrave wrote:
> :
>
> > /*unusual*/ for an application that has any virtual threads to have
> fewer than, say, 10,000
>
> In the case of http server use of virtual thread, I feel the use of
> /*unusual*/ is too strong. That is, when we are using virtual threads
> for application code handling of http request/response (like Jetty +
> Loom), I suspect this is frequently going to operate with less than
> 1000 concurrent requests per server instance.
>
I think the interesting thing is that those 1000 concurrent requests can
be handled by code that is written to do blocking operations without
having to resort to writing asynchronous code. It may be that the
handling of these requests will "fan out" where the work in the handler
splits into several sub-tasks and each sub-task running in its own
virtual thread. In that scenario there will be a lot more threads.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20220712/af59c386/attachment.htm>
More information about the loom-dev
mailing list