我有一个Scala程序,使用线程(实际上是Spark)和Redis (Jedis)。我为我的Redis操作定义了一个object,其中我为连接定义了一个Lazy val。连接对象: lazy val r = new Jedis("127.0.0.1",6379,30)
def find(u: Long): Option[Long]首先,我在每个线程中都有Unknown replay: 4,其中"4“是一个随机字符(redis.clients.jedis.exception
我有一个tomcat服务器,并使用jedis客户端连接到它。 我使用的jedis版本是"3.0.0-m1“和tomcat 8.0.15 在连接之后和几个小时后,我看到了以下异常。对此有什么帮助吗?redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the poolCaused by: redis.clients.jedis.exceptions.JedisConnectionException