Re: Tomcat 10 and virtual thread

Christopher Schultz <[email protected]>
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
William,

On 11/3/25 11:15 AM, William Crowell wrote:
> I have never tried doing it through the executor like that.  How I enable virtual threads in server.xml is like this:
> 
>   <Connector port="8080" protocol="HTTP/1.1"
>                 connectionTimeout="20000"
>                 redirectPort="8443"
>                 maxParameterCount="1000"
>                 useVirtualThreads="true" />


This uses <Connector> to auto-create an <Executor> The useVirtualThreads 
attribute just tells Tomcat to create an <Executor> that uses the 
virtual thread executor class.

-chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.