You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,Ihave a question,my jedis 2.6.2and redis is 2.6.4,Sometimes I use jedisPool,,Exception appear " redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
......................................
Caused by: java.util.NoSuchElementException: Unable to validate object
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:502)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:361)
at redis.clients.util.Pool.getResource(Pool.java:48)
"
But,My jedisPoolConfig is "
maxTotal" value="5000"
"maxIdle" value="1000"
"minIdle" value="50"
"maxWaitMillis" value="1000"
"testOnBorrow" value="true"
"testOnReturn" value="true"
"testWhileIdle" value="true"
"
The text was updated successfully, but these errors were encountered:
The default JedisPool size is really small, that should be mentioned in the docs. There is #739 open currently.
I was running into the same issue where randomly during a lot of writes to redis I would get the same error message, I solved this by increasing the pool max size via JedisPoolConfig setMaxTotal()
Hi ,Ihave a question,my jedis 2.6.2and redis is 2.6.4,Sometimes I use jedisPool,,Exception appear " redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
......................................
Caused by: java.util.NoSuchElementException: Unable to validate object
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:502)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:361)
at redis.clients.util.Pool.getResource(Pool.java:48)
"
But,My jedisPoolConfig is "
maxTotal" value="5000"
"maxIdle" value="1000"
"minIdle" value="50"
"maxWaitMillis" value="1000"
"testOnBorrow" value="true"
"testOnReturn" value="true"
"testWhileIdle" value="true"
"
The text was updated successfully, but these errors were encountered: