Azure Redis Cache - Multiple errors TimeoutException: Timeout performing GET {key}

前端 未结 3 1718
抹茶落季
抹茶落季 2021-01-15 19:29

We deployed our application to Azure. It is using the Azure Redis Cache and we are experiencing quite a few timeouts. Namely:

[TimeoutException: Timeout perf         


        
3条回答
  •  耶瑟儿~
    2021-01-15 19:57

    In all of your exception messages, you have something like "in=65536/0". This indicates that 65536 bytes have been received locally (in the kernel's socket buffer on the local machine) but have not yet been processed by StackExchange.Redis. This would point at an issue on the client app side of things that is keeping the system from processing your response. Two possibilities I can think of that could lead to this:

    1. Your system does not have enough free thread pool threads to process the data fast enough. If you update to build 1.0.450 or later of StackExchange.Redis, the timeout messages will include statistics for how busy the thread pool is, which will help diagnose this issue. Alternatively, you can take use code like https://github.com/JonCole/SampleCode/blob/master/ThreadPoolMonitor/ThreadPoolLogger.cs to log this same information yourself whenever you get an exception.

    2. You are receiving a very large object from the cache and the size of the object is not received within the timeout configured on StackExchange.Redis. When this happens, all calls that were queued onto the same connection behind the large item will timeout when the large item times out.

    Anyway, hope this helps.

提交回复
热议问题