William,

I’m using Adoptium Temurin 21.0.1+12

Regards,

Nicolas 

> Le 7 déc. 2023 à 21:00, William Crowell <wcrow...@perforce.com.invalid> a 
> écrit :
> 
> Nicolas,
> 
> Which JDK version?
> 
> Regards,
> 
> William Crowell
> 
> From: Nicolas BONAMY <nicolas.bona...@gmail.com>
> Date: Thursday, December 7, 2023 at 2:55 PM
> To: users@tomcat.apache.org <users@tomcat.apache.org>
> Subject: Virtual Thread with Http11Nio2Protocol
> Hi,
> 
> I try to use virtual thread on Apache Tomcat 10.1.16 with this configuration 
> on macOS or on Linux:
> 
>    <Executor name="tomcatThreadPoolVirtual" 
> class="org.apache.catalina.core.StandardVirtualThreadExecutor"/>
> 
>    <Connector port="8080" 
> protocol="org.apache.coyote.http11.Http11Nio2Protocol"
>               connectionTimeout="20000"
>               redirectPort="8443"
>               maxParameterCount="1000"
>               useVirtualThreads="true"
>               />
> But when I make a request, I'm not on a virtual thread : 
> Thread[#76,Thread-14,5,main] . I profiled my application too but no virtual 
> threads are used.
> 
> If I use a Http11NioProtocol instead of Http11Nio2Protocol, all requests are 
> on virtual thread : 
> VirtualThread[#65,http-nio-8080-virt-0]/runnable@ForkJoinPool-1-worker-1
> 
>    <Executor name="tomcatThreadPoolVirtual" 
> class="org.apache.catalina.core.StandardVirtualThreadExecutor"/>
> 
> 
>    <Connector port="8080" 
> protocol="org.apache.coyote.http11.Http11NioProtocol"
>               connectionTimeout="20000"
>               redirectPort="8443"
>               maxParameterCount="1000"
>               useVirtualThreads="true"
>               />
> Http11Nio2Protocol is not working with virtual threads? Has anyone 
> encountered this problem before?
> 
> 
> CAUTION: This email originated from outside of the organization. Do not click 
> on links or open attachments unless you recognize the sender and know the 
> content is safe.
> 
> 
> This e-mail may contain information that is privileged or confidential. If 
> you are not the intended recipient, please delete the e-mail and any 
> attachments and notify us immediately.
> 

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

Reply via email to