Change GenericObjectPoolConfig to JedisPoolConfig, add timeBetweenEvictionRuns and minEvictableIdleTime properties.
Reasoning is getting a Jedis instance from the pool will throw if the underlying connection is dead. Testing on idle will ping the server, keeping the connection alive. This can be turned off by setting timeBetweenEvictionRuns to a non-positive number.
Change GenericObjectPoolConfig to JedisPoolConfig, add timeBetweenEvictionRuns and minEvictableIdleTime properties.
Reasoning is getting a Jedis instance from the pool will throw if the underlying connection is dead. Testing on idle will ping the server, keeping the connection alive. This can be turned off by setting timeBetweenEvictionRuns to a non-positive number.