jedis not releasing connections / jedis leaking connections / jedis connection pool exhausted over time

一笑奈何 提交于 2020-01-25 09:02:34

问题


I've a tomcat server and using jedis client to connect to it.

The jedis version I am using is "3.0.0-m1" and tomcat 8.0.15

After connecting and after a few hours I see the below exceptions. Any help on this?

redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
        Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to host test-1234.catalog.com:1234
            Caused by: java.net.UnknownHostException: test-1234.catalog.com:1234

回答1:


My guess would be to check the max number of clients in your Redis server, maybe the Jedis pool has reached that max number and the server is not accepting any new connections.



来源:https://stackoverflow.com/questions/57680696/jedis-not-releasing-connections-jedis-leaking-connections-jedis-connection-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!