目录

Redis 连接池的问题    1

1.    前言    1

2.解决方法    1

 

 

问题描述:Redis跑了一段时间之后,出现了以下异常。

Redis Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use.

 

初步分析是连接池的最大连接数量限制,超过了最大数量,则直接报错。

 

2.解决方法

直接使用PooledRedisClientManager的Dispose方法即可。

相关文章: