redis报错Could not get a resource from the pool
在本地代码调试redis时,报错“Could not get a resource from the pool”,但是在redis服务器上却可以用redis-cli进行连接,尝试过以下方法:
(1)在服务器上通过
netstat -an | grep 6379 | grep EST | wc -l
查看客户端链接数目为0,说明远没达到
spring-redis.xml配置里的maxTotal;
(...
原创
2020-04-25 15:00:57 ·
461 阅读 ·
0 评论