当前位置:网站首页>远程连接redis一会又断开重连
远程连接redis一会又断开重连
2022-06-11 22:34:00 【单筱风】
1.问题
一会儿不操作控制台就提示
[ioEventLoop-4-3] i.l.core.protocol.ReconnectionHandler : Reconnected to *****:6379
造成重连响应很慢,体验极差
2.使用的是lettuce 连接池,这个东西有bug,所以替换成jedis
<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>
spring.redis.jedis.pool.max-active=20
spring.redis.jedis.pool.max-wait=-1
#最大阻塞等待时间(负数表示没限制)
spring.redis.jedis.pool.max-idle=5
spring.redis.jedis.pool.min-idle=0
如上替换,我解决了重连问题
边栏推荐
- 习题8-8 判断回文字符串 (20 分)
- 926. 将字符串翻转到单调递增
- [JS] 1347- high level usage of localstorage
- Are you still using localstorage directly? It's time to raise the bar
- 练习8-8 移动字母 (10 分)
- 3.3 naming rules of test modules
- 华为设备配置HoVPN
- IEEE-754 浮点转换器
- [Yu Yue education] basic engineering English of Zhejiang industrial and Commercial University (wuyiping) reference materials
- Submit task to thread pool
猜你喜欢
随机推荐
Exercise 6-6 using a function to output an integer in reverse order (20 points)
What is deadlock? (explain the deadlock to everyone and know what it is, why it is used and how to use it)
学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况
【NodeJs】Electron安装
机器学习之线性回归简单实例
Use the securecrtportable script function to read data from network devices
Tkinter学习笔记(四)
[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects
Using the command line to call shell in unity
习题9-1 时间换算 (15 分)
习题11-3 计算最长的字符串长度 (15 分)
Is it safe for qiniu business school to send Huatai account? Really?
STM32 development note 113:ads1258 drive design - reading temperature value
Unity3d getlaunchintintforpackage getting package returned null
玩家必读|Starfish NFT进阶攻略
inner join执行计划变了
Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
Exercise 11-3 calculate the longest string length (15 points)
MySQL事务简介
重温c语言一




![[Yu Yue education] Yancheng Normal University Advanced Algebra reference](/img/3f/cd7f6f420fb1d453acca9aa73665ba.jpg)




