Re: Tomcat config with virtual threads
Mark Thomas <[email protected]> Mon, 2 Feb 2026 13:54:41 +0000
| Newsgroups | gmane.comp.jakarta.tomcat.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/02/2026 10:16, [email protected] wrote: > Hello, > > > > I'm working with Tomcat 10.1.4x and java25, our application is extensively > using virtual threads. I enable them in tomcat by simply using > 'useVirtualThreds: true'. > > > > It's working perfectly, by I was wondering if parameters like maxThreads, > minSpareThreads, acceptCount, etc has any effect when working with virtual > threads. > > > > For instance, I set maxThreads = minSpareThreads = acceptCount = 1, and > nothing seems to change (for worse). maxThreads - no effect minSpareThreads - no effect In short, anything that you can set on an Executor will have no effect. acceptCount will have an effect (if your OS pays any attention to the setting - not all do). The setting likely to have the most impact in this area will be maxConnections. If set, once you hit maxConnections then acceptCount comes into play. HTH, Mark