Jedis del操作的SocketTimeout异常

时间:2018-01-25 10:38:04

标签: redis jedis

我经常使用Jedis在redis服务器上进行del操作时获得SocketTimeout Exception。它只占所有删除操作的1%。

例外: -

Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_77]
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:1.8.0_77]
    at java.net.SocketInputStream.read(SocketInputStream.java:170) ~[?:1.8.0_77]
    at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_77]
    at java.net.SocketInputStream.read(SocketInputStream.java:127) ~[?:1.8.0_77]
    at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:195) ~[jedis-2.x.jar:?]
    at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.Protocol.process(Protocol.java:141) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.Protocol.read(Protocol.java:205) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.Connection.getIntegerReply(Connection.java:222) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.Jedis.del(Jedis.java:145) ~[jedis-2.x.jar:?]
    at redis.clients.jedis.ShardedJedis.del(ShardedJedis.java:252) ~[jedis-2.x.jar:?]

我检查了我的共享池配置,它足以处理流量。我在服务器上做了一个客户端列表,没有看到任何年龄超过180秒的客户端。从池中删除任何损坏的资源。

这里可能出现什么问题,如何进一步调查?

0 个答案:

没有答案