Could not get a resource since the pool is exhausted
生活随笔
收集整理的這篇文章主要介紹了
Could not get a resource since the pool is exhausted
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章背景:搭建新系統(tǒng)的時(shí)候,引入redis,但是總是報(bào)錯(cuò)
org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisExhaustedPoolException: Could not get a resource since the pool is exhaustedat org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:281)at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:475)at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:132)在網(wǎng)上搜索了下,排除了:
1.jedis和spring-boot-data-redis 的版本問題。
2.排除了配置中的,驗(yàn)證redis鏈接是否失效的問題。
3.排除了從redis中獲取資源沒有釋放的問題
4.排除redis配置支持事務(wù)的問題
最終發(fā)現(xiàn)問題有可能出在,我本地開發(fā)的時(shí)候,連接redis服務(wù)器,redis的配置中,沒有密碼可能導(dǎo)致Redis的保護(hù)模式上面
設(shè)置redis的密碼后,重新測試,解決問題
總結(jié)
以上是生活随笔為你收集整理的Could not get a resource since the pool is exhausted的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTML标签之文档结构标签
- 下一篇: 戴尔服务器修改光驱盘符,戴尔笔记本电脑驱