csredis icon indicating copy to clipboard operation
csredis copied to clipboard

RedisIO ReadByte和write 大量线程阻塞到这里有哪些原因呢?

Open thicktao opened this issue 3 years ago • 1 comments

问题:大量线程阻塞到这里有哪些原因呢? 环境:windows server 2016 .netcore 3.14 64位程序

现象:寄宿程序的webapi卡死,cpu10%以下,内存暴涨到2个G ,线程数量3W+

死锁信息: image

大量线程阻塞于Write(Stream stream)等待24和22线程。 image

22和24线程堆栈信息: image

image

thicktao avatar Dec 20 '21 10:12 thicktao

是使用了很多次订阅吗?

建议使用重新编写的 FreeRedis

2020/11/3 发布距离今天已经20个月,支持 RESP2.0 3.0

https://github.com/2881099/FreeRedis

2881099 avatar Jul 04 '22 10:07 2881099