VolareYang commented on PR #936:
URL: https://github.com/apache/tomcat/pull/936#issuecomment-4776775942

   Hi! I have a question: how do I enable virtual threads in Tomcat 11? After 
enabling virtual threads, which log in Tomcat's startup logs can I check to 
confirm that virtual threads are actually being used?
   
   My environment:
   Tomcat: 11.0.23
   JDK: 21
   server.xml configuration:
   <Executor name="virtualThreadExecutor" 
className="org.apache.catalina.core.StandardVirtualThreadExecutor" 
namePrefix="tomcat-virt-"/>
   <Connector executor="virtualThreadExecutor" port="8080" protocol="HTTP/1.1"
   connectionTimeout="20000"
   redirectPort="8443" />
   
   Startup logs show:
   23-Jun-2026 14:51:39.306 INFO [main] 
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler 
["http-nio-8080"]
   23-Jun-2026 14:51:39.313 INFO [main] 
org.apache.catalina.startup.Catalina.start Server startup in [799] milliseconds
   
   When I check the thread stack with the jstack command, I don't see any 
threads related to tomcat-virt- so I can't be sure if virtual threads are 
actually enabled. Could you guide me? Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to