Re: Virtual Thread with Http11Nio2Protocol

2023-12-08 Thread Nicolas BONAMY
Thanks! Nicolas > Le 8 déc. 2023 à 11:35, Mark Thomas a écrit : > > On 08/12/2023 09:51, Mark Thomas wrote: >>> On 08/12/2023 02:49, Han Li wrote: >>> Hi Nicolas, >>> >>> I took a quick look that Tomcat's VirtualThreadExecutor does not implement >>> the ExecutorService interface, which leads

Re: Virtual Thread with Http11Nio2Protocol

2023-12-08 Thread Mark Thomas
On 08/12/2023 09:51, Mark Thomas wrote: On 08/12/2023 02:49, Han Li wrote: Hi Nicolas, I took a quick look that Tomcat's VirtualThreadExecutor does not implement the ExecutorService interface, which leads to this result. So I think this is a Tomcat bug. +1 This has been fixed for all ver

Re: Virtual Thread with Http11Nio2Protocol

2023-12-08 Thread Nicolas
Hi Mark, Of course I tried with To reference the executor in the connector ;) > Le 8 déc. 2023 à 10:51, Mark Thomas a écrit : > > On 08/12/2023 02:49, Han Li wrote: >> Hi Nicolas, >> I took a quick look that Tomcat's VirtualThreadExecutor does not implement >> the ExecutorSer

Re: Virtual Thread with Http11Nio2Protocol

2023-12-08 Thread Nicolas
Hi, When the property "useVirtualThreads" is true, Tomcat create a VirtualThreadExecutor (https://github.com/apache/tomcat/blob/10.1.x/java/org/apache/tomcat/util/net/AbstractEndpoint.java#L1047) so a virtual thread is using (https://github.com/apache/tomcat/blob/10.1.x/java/org/apache/tomcat/

Re: Virtual Thread with Http11Nio2Protocol

2023-12-08 Thread Mark Thomas
On 08/12/2023 02:49, Han Li wrote: Hi Nicolas, I took a quick look that Tomcat's VirtualThreadExecutor does not implement the ExecutorService interface, which leads to this result. So I think this is a Tomcat bug. +1 On Dec 8, 2023, at 03:55, Nicolas BONAMY wrote: Hi, I try to use virtu

Re: Virtual Thread with Http11Nio2Protocol

2023-12-07 Thread Han Li
Hi Nicolas, I took a quick look that Tomcat's VirtualThreadExecutor does not implement the ExecutorService interface, which leads to this result. So I think this is a Tomcat bug. Han > On Dec 8, 2023, at 03:55, Nicolas BONAMY wrote: > > Hi, > > I try to use virtual thread on Apache Tomcat 1

Re: Virtual Thread with Http11Nio2Protocol

2023-12-07 Thread Nicolas BONAMY
December 7, 2023 at 2:55 PM > To: 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: > > class="org.apache.catalina.core.Standard

Re: Virtual Thread with Http11Nio2Protocol

2023-12-07 Thread William Crowell
Nicolas, Which JDK version? Regards, William Crowell From: Nicolas BONAMY Date: Thursday, December 7, 2023 at 2:55 PM To: 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

Virtual Thread with Http11Nio2Protocol

2023-12-07 Thread Nicolas BONAMY
Hi, I try to use virtual thread on Apache Tomcat 10.1.16 with this configuration on macOS or on Linux: 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