Closing redis connection using spring redis template with aws cluster

889 views
Skip to first unread message

Balaji Dommaraju

unread,
Sep 23, 2015, 10:25:56 PM9/23/15
to Redis DB
Hi i have connected redis endpoints with spring redis template with jedis connection factory but if i seen in aws console connections graph it has been increasing widely not closing those connection is there any way to close connection manually or it will do automatically>?

but as of know i have checked with below code, it is not working

 redisTemplate.discard(); or   redisTemplate.getConnectionFactory().getConnection().close(); 

even if did above one connections are remaining same and jedis pool also not working i have mention active connections 10 but it allowing even above 10 connections 

Mark Paluch

unread,
Sep 24, 2015, 2:58:07 PM9/24/15
to Redis DB
Check with the jedis guys. It's not a Spring Data Redis issue. Recently there have been similar questions on the pooling topic: http://stackoverflow.com/questions/32584066/jedis-high-performing-servlet-settings/32584962
Reply all
Reply to author
Forward
0 new messages