You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2023/12/07 18:05:33 UTC
[Bug 68312] New: Virtual threads with Http11Nio2Protocol
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
Bug ID: 68312
Summary: Virtual threads with Http11Nio2Protocol
Product: Tomcat 10
Version: 10.1.16
Hardware: Macintosh
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
Assignee: dev@tomcat.apache.org
Reporter: nicolas.bonamy2@gmail.com
Target Milestone: ------
Hi,
I try to use virtual thread on Apache Tomcat 10.1.16 with this configuration:
<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"/>
<!-- A "Connector" represents an endpoint by which requests are received
org.apache.coyote.http11.Http11Nio2Protocol
and responses are returned. Documentation at :
HTTP Connector: /docs/config/http.html
AJP Connector: /docs/config/ajp.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8080"
protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8443"
maxParameterCount="1000"
useVirtualThreads="true"
/>
Is Http11Nio2Protocol not working with virtual threads or is it a bug?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 68312] Virtual threads with Http11Nio2Protocol
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
Nicolas <ni...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 68312] Virtual threads with Http11Nio2Protocol
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 68312] Virtual threads with Http11Nio2Protocol
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
And Tomcat 10.1: 2b3f0f09641e0d8504a114cf296a18d66039266b will be in 10.1.18
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 68312] Virtual threads with Http11Nio2Protocol
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
Christopher Schultz <ch...@christopherschultz.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Christopher Schultz <ch...@christopherschultz.net> ---
This has been fixed
11.x branch: f9fb4f443d5c6814445a42174288ae549abc83ec will be in 11.0.0-M16
9.0.x branch: 81ff43e1e7f6f5f833a035ad97422c94cd82a4bc will be in 9.0.85
8.5.x branch: bf1a093b63eb9ab50a8f37feff3feb64e90b8c1f will be in 8.5.98
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 68312] Virtual threads with Http11Nio2Protocol
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68312
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. Please use the users mailing list.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org