请选择 进入手机版 | 继续访问电脑版

Redis中国用户组(CRUG)论坛

 找回密码
 立即注册

扫一扫,访问微社区

搜索
热搜: 活动 交友 discuz
查看: 3187|回复: 0

redis正常运行一年多后报错

[复制链接]

该用户从未签到

1

主题

1

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2017-6-2 15:48:31 | 显示全部楼层 |阅读模式
报错信息:
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
        at redis.clients.util.Pool.getResource(Pool.java:50) ~[jedis-2.7.2.jar:?]
        at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:181) ~[jedis-2.7.2.jar:?]
        at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:17) ~[jedis-2.7.2.jar:?]
        at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:155) ~[spring-data-redis-1.6.2.RELEASE.jar:1.6.2.RELEASE]
        ... 41 more
Caused by: java.util.NoSuchElementException: Unable to validate object
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:506) ~[commons-pool2-2.4.1.jar:2.4.1]
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) ~[commons-pool2-2.4.1.jar:2.4.1]
        at redis.clients.util.Pool.getResource(Pool.java:48) ~[jedis-2.7.2.jar:?]
        at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:181) ~[jedis-2.7.2.jar:?]
        at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:17) ~[jedis-2.7.2.jar:?]
        at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:155) ~[spring-data-redis-1.6.2.RELEASE.jar:1.6.2.RELEASE]
        ... 41 more
--------------------
redis配置

redis.pool.maxTotal=10

redis.pool.maxIdle=2

redis.pool.maxWaitMillis=1000

redis.pool.testOnBorrow=true




您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Redis中国用户组 ( 京ICP备15003959号

GMT+8, 2020-10-2 01:08 , Processed in 0.088357 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表