Skip to content

JedisConnectionException if Redis is down #99

Open
@carmides

Description

@carmides

I get an exception if Redis is down:
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:42)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:84)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException:
Caused by: java.net.ConnectException:

As a result, Tomcat cannot run any application. I've also tested Memcached as session manager and Tomcat keeps up and running even if Memcached is down. I'm not sure if this is the expected behaviour with Redis. How can I configure it to avoid this exception?

Thanks very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions