You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "john1337 (via GitHub)" <gi...@apache.org> on 2025/10/27 08:31:02 UTC
[I] seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程 [incubator-seata]
john1337 opened a new issue, #7734:
URL: https://github.com/apache/incubator-seata/issues/7734
### Check Ahead
- [x] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
- [ ] I am willing to try to implement this feature myself.
### Why you need it?
seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程,因为seata 2.5.0内部有很多类用到了ThreadLocal类,我之前提到过一个类似的问题,https://github.com/apache/incubator-seata/issues/7681,但是最后提到的调整方案感觉跟我问到的问题不是一个问题吧
### How it could be?
_No response_
### Other related information
_No response_
--
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: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #7734: seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程
URL: https://github.com/apache/incubator-seata/issues/7734
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7734:
URL: https://github.com/apache/incubator-seata/issues/7734#issuecomment-3450373542
The primary impact of ThreadLocal on virtual threads is increased memory usage and a small performance cost. By default, virtual threads are not pooled, so ThreadLocals are reinitialized every time a virtual thread is created and then discarded when that virtual thread ends. If this is a concern for your workload, consider using a pool of virtual threads. Because virtual threads are not platform threads and are extremely lightweight, pooling them uses very little memory and avoids the large memory overhead associated with the -Xss (stack size) parameter.
```
return new ThreadPoolExecutor(200, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<>(),
Thread.ofVirtual().factory());
```
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程 [incubator-seata]
Posted by "john1337 (via GitHub)" <gi...@apache.org>.
john1337 commented on issue #7734:
URL: https://github.com/apache/incubator-seata/issues/7734#issuecomment-3450855997
我担心的其实是一旦启用虚拟线程后seata的功能会不会受到影响,seata只要不受到影响,其他都相对好处理些
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] seata 2.5.0支持在springboot 3.x版本的虚拟线程环境,controller接口开启虚拟线程 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7734:
URL: https://github.com/apache/incubator-seata/issues/7734#issuecomment-3451179464
> 我担心的其实是一旦启用虚拟线程后seata的功能会不会受到影响,seata只要不受到影响,其他都相对好处理些
In theory, there shouldn’t be any negative impact. Seata has conducted multiple performance tests with virtual threads since version 2.0.
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org