Does ulimit need to run memcached with -c?

If starting as root, do the following:

memcached -c 5000 ...

I need my script run to look like this:

ulimit -n 5000
memcached -c 5000 ...

Or will memcached automatically set the maximum open files?

+3
source share
1 answer

memcached -c does not affect user restrictions.

If you set the maximum number of concurrent connections to a value that exceeds the maximum allowed through ulimit, you need to run the ulimit command or modify the limits.conf file (/etc/security/limits.conf) to provide a sufficient number of connections / file descriptors.

+3
source

Source: https://habr.com/ru/post/1728250/


All Articles