数据库
首页 > 数据库> > redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

作者:互联网

解决办法:调整JedisPoolConfig中maxActive为适合自己系统的阀值。

<bean id="dataJedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig"> 
        <property name="maxActive" value="300"/> 
        <property name="maxIdle" value="100"/> 
        <property name="maxWait" value="10000"/> 
        <property name="testOnBorrow" value="true"/> 
</bean> 

参考:https://www.iteye.com/topic/1122212


 


 

 注:其它原因备录:

标签:www,iteye,resource,get,Could,端口,备录,topic,JedisPoolConfig
来源: https://www.cnblogs.com/LJing21/p/11526952.html