itsraja
itsraja

Reputation: 1736

JedisPool number of connections issue

am new to redis and use a JedisPool in my multi-threaded app.

 JedisPoolConfig config = new JedisPoolConfig();
 config.setMaxActive(200);
 config.setMaxIdle(200);
 pool = new JedisPool(config,"localhost",6379,-1,jedisPasswd);

I want to have 200 connections with out getting expired, but at any time I don't have more than 2 to 3 connections, Do I miss anything here.

Thanks.

Upvotes: 3

Views: 2727

Answers (1)

Rajiv Kurian
Rajiv Kurian

Reputation: 31

Have you tried using setMinIdle() ?

Upvotes: 3

Related Questions