redis - StackExchange.Redis 系统.TimeoutException

标签 redis stackexchange.redis

当我尝试持久化一系列数据时,我突然遇到了这个超时异常,它之前是有效的,我没有做任何更改:

Timeout performing HMSET {key}, inst: 0, mgr: ExecuteSelect, err: never, queue: 2, qu: 1, qs: 1, qc: 0, wr: 1, wq: 1, in: 0, ar: 0, clientName: {machine-name}, serverEndpoint: Unspecified/localhost:6379, keyHashSlot: 2689, IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=0,Free=2047,Min=4,Max=2047), Local-CPU: 100% (Please take a look at this article for some common client-side issues that can cause timeouts: https://github.com/StackExchange/StackExchange.Redis/tree/master/Docs/Timeouts.md)

我在 Windows 上使用 Redis。

最佳答案

在您的超时错误消息中,我看到 Local-CPU: 100%。这是调用 Redis 服务器的客户端上的 CPU。您可能想查看导致客户端 CPU 负载过高的原因。

本文介绍了为什么高 CPU 使用率会导致客户端超时。 https://gist.github.com/JonCole/db0e90bedeb3fc4823c2#high-cpu-usage

关于redis - StackExchange.Redis 系统.TimeoutException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43622831/

相关文章:

asp.net - Web场景下StackExchange.Redis ConnectionMultiplexer生命周期管理

node.js - 使用 Node.js、Redis 和 CouchDB 管理 future 事件通知

asp.net-mvc - Microsoft.Web.RedisSessionStateProvider 不保存值

python - Flask 应用程序无法在浏览器中加载

redis - Django_redis 锁失败并出现 UnpicklingError

Redis 事件日志

redis - StackExchange.Redis.RedisServerException : 'OFFSET exceeds maximum of 10000'

c# - 如何在redis数据库中配置实例(文件夹)

c# - Redis Server 失败,Socket 失败,超出输出缓冲区限制,我该如何增加限制?

c# - StackExchange.Redis 扫描 x 个键