Thanks chris for your thoughts.

> This is obviously a "big" question whose answer likely take months to
> really determine. But we can get started :)

I am aware the question is too broad but better to ask than to be
silent. Will try to go for increasing maxKeepAliveRequests first and
see where that moves us.

> I'm curious: did you experience any significant change in performing
> and/or CPU usage when switching to Virtual Threads?

The load tests we performed showed us virtual threads overperform
platform threads for the constrained environment we have, where only
one Tomcat instance is used, and a shared machine with other
processes. We tried increasing the platform thread pool as much as we
could, but there was a limit where no more threads helped at all, the
context switch was eating the performance. We have seen 5000
requests/second with good latency for getting a small file from
memory. When the load is high, virtual threads start to eat a lot of
CPU, but, we notice that the limit for that is higher than for
platform threads, where the CPU starts to increase pretty soon
alongside memory. We have been using virtual threads from JDK 19 as a
preview on production code and no issues at all.

--
Daniel Andrés Pelaez López

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to