亲测有效: ERR CONFIG SET failed (possibly related to argument ‘maxclients‘) - The operating system is

一、问题:修改docker 安装的redis redis maxclients报错:
(error) ERR CONFIG SET failed (possibly related to argument ‘maxclients’) - The operating system is not able to handle the specified number of clients, try with 65504

二、排查过程:
1、查看redis.log: docker logs --tail 200 redis |grep clients

1:M 29 Oct 2024 14:01:38.652 # You requested maxclients of 100000 requiring at least 100032 max file descriptors.
1:M 29 Oct 2024 14:01:38.652 # Current maximum open files is 65536. maxclients has been reduced to 65504 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n’.
1:M 29 Oct 2024 14:01:38.652 # Failed applying new configuration. Possibly related to new maxclients setting. Restoring previous settings.

三、解决过程
1、安装redis.log提示修改ulimit -n 调大未解决,

2、根据提示说的是maximum open files is 65536 ,查看最大文件描述符cat /pro//limits

ps axu |grep redis 获取到pid 为 222846

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值