【发布时间】:2012-12-31 16:17:10
【问题描述】:
在对我们的应用服务器进行压力测试时,我们从 Redis 获得了以下异常:
ServiceStack.Redis.RedisException: could not connect to redis Instance at redis-host:6379 ---> System.Net.Sockets.SocketException: An operation on a socket could not be executed because the system lacking enough缓冲区空间或因为队列已满 redis-host:6379 在 System.Net.Sockets.Socket.Connect(IPAddress[] 地址,Int32 端口) 在 System.Net.Sockets.Socket.Connect(字符串主机,Int32 端口) 在 ServiceStack.Redis.RedisNativeClient.Connect() --- 内部异常堆栈跟踪结束 --- 在 ServiceStack.Redis.RedisNativeClient.Connect() 在 ServiceStack.Redis.RedisNativeClient.AssertConnectedSocket() 在 ServiceStack.Redis.RedisNativeClient.SendCommand(Byte[][] cmdWithBinaryArgs) 在 ServiceStack.Redis.RedisNativeClient.SendExpectData(Byte[][] cmdWithBinaryArgs) 在 ServiceStack.Redis.RedisClient.GetValueFromHash(字符串 hashId,字符串键) 在 ServiceStack.Redis.Generic.RedisTypedClient
1.GetValueFromHash[TKey](IRedisHash2 hash, TKey key)
redis 主机端口似乎有超出连接限制。知道如何通过 Redis.conf 或服务器配置来增加此阈值吗?我们已经在 Ubuntu 服务器上托管了 Redis 实例。
【问题讨论】:
-
你能解决这个问题吗?
标签: redis