If launching as root like this:
memcached -c 5000 ...
do I need my startup script to look like this:
ulimit -n 5000
memcached -c 5000 ...
Or will memcached set the max open files automatically?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
memcached -c does not affect your user limit settings.
If you set the value for max simultaneous connections to something outside of what’s permitted via ulimit then you will need to execute the ulimit command or change the limits.conf (/etc/security/limits.conf) file to allow a sufficient amount of connections/file descriptors.