Hi,
I started to use JedisPool for my multi threaded application.
When I configure the pool with the resources, say 128, Jedis actually
opens 128 connections to Redis immediately after initialization, even
though no body has requested any Resource from JedisPool.
- Why don't we handle Lazy initialization in case of Connection
Pooling?
- Any specific reason why we have gone for a own implementation of the
JedisPool?
I have used apache commons pooling in other scenarios.
It worked pretty well and gives lot of other configurations like max
active connections, max idle, eviction time etc.
Just curious to know the reasons for this?
One side effect of this was seen when I tried to increase this number
to 1024(I know this is not a good number, but just wanted to try) and
tried to do some IO operations, like list files on directory. Which
started to fail, indicating an IO error.(Because File descriptors
available for any process in Linux was configured to be 1024, which
were occupied by Jedis Connections)
Regards
Ramu
--
Eric Hauser
http://erichauser.net/