Multi-threaded high-concurrency to connect one connection timeout situation occurs redis

Redis initiated when a large number of links, they report an error connection timeout, but redis and no downtime, because the configuration file used jedis

 

 

 

If lettuce mode connection, this report may not be wrong;

Modified as follows, after the lettuce removed without error of the envelope


<!-- redis工具类 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>

Guess you like

Origin www.cnblogs.com/LMDclg/p/12131672.html