StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

5000ms timeout ,unkown reason

Open qiqisteve opened this issue 2 years ago • 2 comments

the same server env, golang redis is ok ,dotnet always 5000ms timeout,fix it 2024-09-08 14:25:21.6162|1|ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. StackExchange.Redis.RedisTimeoutException: Timeout performing GET (5000ms), next: GET SP:po:2024090814240523061, inst: 1, qu: 0, qs: 8, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 2256, in-pipe: 0, out-pipe: 0, last-in: 0, cur-in: 0, sync-ops: 13886, async-ops: 0, serverEndpoint: localhost:6369, conn-sec: 51834.44, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: VM-0-6-ubuntu(SE.Redis-v2.8.12.45748), IOCP: (Busy=0,Free=1000,Min=2,Max=1000), WORKER: (Busy=8,Free=32759,Min=2,Max=32767), POOL: (Threads=8,QueuedItems=8,CompletedItems=226824,Timers=7), v: 2.8.12.45748 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server, T defaultValue) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 2105 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor1 processor, ServerEndPoint server, T defaultValue) in /_/src/StackExchange.Redis/RedisBase.cs:line 62

qiqisteve avatar Sep 08 '24 12:09 qiqisteve

How large is the payload that's being retrieved here? Stats to not look off, so it seems like we're waiting on data in the response to come in.

NickCraver avatar Oct 01 '24 14:10 NickCraver

Thanks for the report. We believe this is very likely addressed by the low-level IO rewrite in StackExchange.Redis 3.0 (a new RESPite-based core that replaces Pipelines.Sockets.Unofficial and the old backlog/write loop).

Closing on that basis — but we'd value confirmation: if you can still reproduce on 3.0.x, please comment with details and we'll reopen and dig in.

mgravell avatar Jul 22 '26 12:07 mgravell