李锋镝的博客

  • 首页
  • 时间轴
  • 说说
  • 读书观影
  • 系列
  • AI工具集
  • 论坛
  • 友圈
    • 友链
    • 朋友圈
    • 游客中心
  • 留言
    • 留言
    • 走心评论
  • 关于
    • 关于本站
    • Now
    • 每日心情
    • 网站地图
    • 网站统计
    • 赞助
  • 星球穿梭
  • 🚇开往
静亦定 动亦定
惟坚韧者始能遂其志
  1. 首页
  2. 代码人生
  3. 正文

redis异常记录

2023年4月17日 237 0 0
本文最后更新于 2025年11月20日,距今已 352 天,其中的信息可能已经发生变化,请注意甄别。

前段时间发现线上有部分实例出现Redis异常,异常如下:

"stack_trace": "org.redisson.client.WriteRedisConnectionException: Unable to send command! Node source: NodeSource [slot=null, addr=null, redisClient=null, redirect=null, entry=MasterSlaveEntry [masterEntry=[freeSubscribeConnectionsAmount=1, freeSubscribeConnectionsCounter=50, freeConnectionsAmount=9, freeConnectionsCounter=49, freezed=false, freezeReason=null, client=[addr=redis://:7000], nodeType=MASTER, firstFail=0]]], connection: [id: 0xb1e1e677, L:/ ! R:], command: (DEL), params: [ITEMCENTER_V1_0]\n\tat org.redisson.command.CommandAsyncService.checkWriteFuture(CommandAsyncService.java:664)\n\tat org.redisson.command.CommandAsyncService.access$100(CommandAsyncService.java:84)\n\tat org.redisson.command.CommandAsyncService$9$1.operationComplete(CommandAsyncService.java:622)\n\tat org.redisson.command.CommandAsyncService$9$1.operationComplete(CommandAsyncService.java:619)\n\tat io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)\n\tat io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:485)\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)\n\tat io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121)\n\tat io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(AbstractChannel.java:987)\n\tat io.netty.channel.AbstractChannel$AbstractUnsafe.write(AbstractChannel.java:869)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.write(DefaultChannelPipeline.java:1391)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730)\n\tat io.netty.channel.AbstractChannelHandlerContext.access$1900(AbstractChannelHandlerContext.java:38)\n\tat io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:1081)\n\tat io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1128)\n\tat io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:1070)\n\tat io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:464)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)\n\tat io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.nio.channels.ClosedChannelException: null\n\tat io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source)\n"

经排查分析,发现是因为Redisson链接池不足导致。

解决办法:

增加Redis主从链接池数量。

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
分享到

redis异常记录

也可使用浏览器菜单中的「分享」功能

微信扫一扫分享

标签: Redis Redisson
最后更新:2025年11月20日
相关文章
  • 还不懂Redis?看完这个故事就明白了!2020年10月19日
  • Redis 7.0+ 中 EXPIREAT 的增强选项详解2025年7月4日
  • SpringBoot 实现接口防刷的 5 种实现方案2025年5月27日
  • 深入理解Redis2019年11月22日
  • Redis中缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题2020年2月26日

李锋镝

既然选择了远方,便只顾风雨兼程。

打赏 点赞
< 上一篇
下一篇 >
1234567891112131415161718192021222324252627282930313233343536373839404142434446474849505152535455575859606162636465666769727476777879808182858687909293949596979899
取消回复
…

文章评论

还没有评论,快来抢沙发吧~

曾伴浮云归晚翠,犹陪落日泛秋声。
世间无限丹青手,一片伤心画不成。

听点儿音乐吧 朋友~
文章目录
最新 热点 随机
最新 热点 随机
给服务器加了WAF 又一个逆天改命的人:小小徐 AI的生成能力等于生产力吗? NGINX严重漏洞(CVE-2026-15176、CVE-2026-93479、CVE-2026-97205) Kratos-plus v1.1.27更新说明 php2shell远程执行漏洞修复(CVE-2026-109618 和 CVE-2026-109619)
给主题增加了游客中心功能心气没了,干什么都不得劲我觉得是时候公布我的导航网站了给服务器加了WAF游本昌去世关于主题加载速度优化的一点儿小演进
突破AI大项目理解瓶颈:三大进阶策略+实战落地指南 桃花庵歌 SchedulingConfigurer详解 我觉得是时候公布我的导航网站了 K8S + docker部署war包项目 Kubernetes(K8s)的Service运行原理
最近评论
fairy 发布于 1 天前(11月06日) 机器人快来我这里吧!
李锋镝 发布于 1 天前(11月06日) 都是机器人,防不住
李锋镝 发布于 1 天前(11月06日) 是的,太烦了
李锋镝 发布于 1 天前(11月06日) 可以同一台服务器
fairy 发布于 1 天前(11月06日) 这流量,好厉害啊。我一年都没那么多
标签聚合
日常 K8s ElasticSearch Spring 分布式 SQL AI编程 SpringBoot Claude JAVA JVM IDEA 架构 Redis 数据库 多线程 Theme WordPress AI MySQL
友情链接
  • Honesty
  • 懋和道人
  • 九仞之行
  • 韩情脉脉
  • lijie blog
  • Mr.Sun的博客
  • sssr7844的博客
  • 彬红茶日记
  • 志文工作室
  • 瓦匠个人小站
  • 刘永博客
  • Serendipity
  • 韩小韩博客
  • 林羽凡
  • 老张博客
  • 哥斯拉
  • 搬砖日记
  • 皮皮社
  • 知向前端

COPYRIGHT © 2016-2026 lifengdi.com. ALL RIGHTS RESERVED.

lifengdi.com 十年之约虫洞

Domain age badge for lifengdi.com

Theme Kratos-plus By Dylan Li

津ICP备2024022503号-3

京公网安备11011502039375号