redis卡死问题解决
1、pom.xml【jedis:2.10.2】
pom.xml文件更换jedis:2.10.2包
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.10.2</version>
</dependency>
2、application.yml用jedis配置
# [jedis:2.10.2]new
jedis:
pool:
maxWaitMillis: 1000
maxTotal: 500
maxIdle: 10
minIdle: 100
testOnBorrow: true
testOnReturn: true
testWhileIdle: true
numTestsPerEvictionRun: 10
timeBetweenEvictionRunsMillis: 10
minEvictableIdleTimeMillis: 100
blockWhenExhausted: false
3、redis:事务设置为false

备注:RedisConfig.java的redis事务设置为false
4、关闭连接redis

本文介绍了解决Redis卡顿的方法,包括更新jedis版本至2.10.2,调整application.yml配置,设置RedisConfig中的事务为false及关闭连接。
998

被折叠的 条评论
为什么被折叠?



