Skip to content

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out #2571

Closed Answered by yangbodong22011
anil181 asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@anil181
Comment options

Answer selected by anil181
Comment options

You must be logged in to vote
1 reply
@anil181
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants