Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Redis: Pool of 300+ connections possible?

I find it hard to create a connection pool in Redis with 300+ connections. I am about use it in a volatile environment in a multi-threaded app. Is anyone experienced with a deployment like this that could help me determine if this is possible? Thanks.

like image 775
itsraja Avatar asked Jun 11 '11 06:06

itsraja


1 Answers

You shouldn't have any issues on the redis side - http://jaksprats.wordpress.com/2010/09/22/12/ shows performance data for up to 64k concurrent connections.

300 is a long way from 64k, but it is a lot closer to the maximum number of threads java can reasonably handle. That varies depending on the hardware you are using, JVM settings, and how much each thread is doing. There isn't enough information in your question to know for sure, but most likely this is where you are running into problems.

like image 104
Tom Clarkson Avatar answered Sep 28 '22 04:09

Tom Clarkson