'Redis max clients "error The operating system is not able to handle the specified number of clients, try with 10208"

Hi i have a problem with Redis on linux redhat, when i am trying to modify maxclients to more than 10k i have an error "error The operating system is not able to handle the specified number of clients, try with 10208" I already have modified

ulimit -n 50000

sudo cat /etc/security/limits.conf

  • soft nofile 50000

  • hard nofile 50000

/etc/security/limits.d/95-redis.conf

redis soft nofile 50000

redis hard nofile 50000

/etc/systemd/system/redis.service

LimitNOFILE=50000

I restarted the serwer and nothing happend stil same error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source