java - Spring RedisTemplate: after 8 calls method keys hangs up - Stack Overflow
Assuming you're using Jedis with pooling, you run into an exhaustion of the underlying connection pool.
Each call to redisTemplate.getConnectionFactory().getConnection()
allocates a new connection from the connection pool. Do you call connection.close()
?. If not, the pool gets exhausted. The pools starts to block your request (hoping another thread will return a connection so it can be used by the thread which requests a connection).
Read full article from java - Spring RedisTemplate: after 8 calls method keys hangs up - Stack Overflow
No comments:
Post a Comment