应用访问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
来源:oschina
链接:https://my.oschina.net/u/4397718/blog/4355265