当前位置: 代码迷 >> 综合 >> RedisTimeoutException: Unable to send command
  详细解决方案

RedisTimeoutException: Unable to send command

热度:46   发布时间:2023-12-21 00:14:27.0

应用访问redis报错如下:
org.redisson.client.RedisTimeoutException: Unable to send command! Try to increase 'nettyThreads' and/or connection pool size settings Node source: NodeSource [slot=0, addr=null, redisClient=null, redirect=null, entry=MasterSlaveEntry [masterEntry=[freeSubscribeConnectionsAmount=0, freeSubscribeConnectionsCounter=value:49:queue:0, freeConnectionsAmount=18, freeConnectionsCounter=value:9994:queue:0, freezed=false, freezeReason=null,

解决方法:
设置/etc/security/limits.conf

  • soft nofile 65535
  • hard nofile 65535
  • soft nproc 65535
  • hard nproc 65535
  相关解决方案