-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Autoconfigure Undertow/XNIO for virtual thread support #38819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe we may have looked into it but couldn't find the same kind of virtual thread support that Tomcat and Jetty were offering. @g-dx Have you seen any examples of how to configure Undertow to make use of virtual threads? |
Thanks, @ChunMengLu. We'll look at doing this automatically in Spring Boot 3.3. |
This comment has been minimized.
This comment has been minimized.
As discovered in #39812, the approach with the executor doesn't work, as it leaks memory. I had to revert the change. |
Seems like memory issue is partially solved with https://issues.redhat.com/browse/UNDERTOW-2309 in 2.3.11 but still there is one open bug which occured with above release and tracked under https://issues.redhat.com/browse/UNDERTOW-2389 Once UNDERTWO-2389 is fixed, maybe virtual threads can be re-tested. |
#39812 (comment) has noted that both undertow issues are now fixed. |
Yes, this now looks good. I've run some tests with virtual threads enabled and
|
We need to wait for an Undertow version which has the fix for https://issues.redhat.com/browse/UNDERTOW-2420 in it. |
We have decided to ignore UNDERTOW-2420 and have upgraded the Undertow version in #42302 - so this issue can be tackled now. |
Hi,
With the release of Spring Boot 3.2 a new property
spring.threads.virtual.enabled
was added which, amongst other classes, configured Tomcat and Jetty HTTP request handling to be performed using a virtual thread executor.Are there any plans to also provide out of the box support for Undertow?
The text was updated successfully, but these errors were encountered: