redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out #2571
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Timeout is usually related to many factors. It is recommended that you follow the steps below to troubleshoot: 1 About Redis1.1 Is Redis CPU too high, or whether the machine where Redis is loaded is too high? 2 About Jedis2.1 Are Jedis parameters configured correctly? 3. About the network3.1 Whether there is a problem with the network from Jedis to Redis machine (p.s. If a timeout occurs by accident, it is likely to be caused by the network) |
Beta Was this translation helpful? Give feedback.
-
Besides what @yangbodong22011 said, check if the request ( |
Beta Was this translation helpful? Give feedback.
Timeout is usually related to many factors. It is recommended that you follow the steps below to troubleshoot:
1 About Redis
1.1 Is Redis CPU too high, or whether the machine where Redis is loaded is too high?
1.2 Is Redis executing some O(n) commands when this exception is obtained, such as keys, hgetall, etc.
2 About Jedis
2.1 Are Jedis parameters configured correctly?
2.2 Whether the load of Jedis machine is too high
3. About the network
3.1 Whether there is a problem with the network from Jedis to Redis machine (p.s. If a timeout occurs by accident, it is likely to be caused by the network)