redis订阅关闭异常解决

应用程序模块订阅redis运行一段时间出现一直重连Redis服务,日志如下:

2019-04-28 10:06:17,551 ERROR org.springframework.data.redis.listener.RedisMessageListenerContainer - Connection failure occurred. Restarting subscrip
tion task after 5000 ms

解决方案

redis.conf配置文件,把下面的值调大即可

client-output-buffer-limit pubsub 32mb 8mb 60    # Redis订阅客户端订阅buffer超过32M或持续60秒超过8M,订阅立即被关闭!

相关文章:

  • 2021-07-11
  • 2021-09-11
  • 2022-03-06
  • 2021-06-27
  • 2022-12-23
  • 2022-01-06
  • 2021-07-06
  • 2018-08-08
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2021-05-31
  • 2022-12-23
  • 2021-09-18
  • 2021-09-23
  • 2021-11-01
相关资源
相似解决方案