LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   ulimit: open files: cannot modify limit: Operation not permitted (http://www.linuxquestions.org/questions/linux-server-73/ulimit-open-files-cannot-modify-limit-operation-not-permitted-929632/)

Winanjaya 02-16-2012 02:05 AM

ulimit: open files: cannot modify limit: Operation not permitted
 
Dear All,

I build asterisk 1.8 on Centos 5.5 x64 ..
I am facing with warning below when starting the asterisk:

Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open files: cannot modify limit: Operation not permitted

I have googled and found someone explains that it's an OS problem..

could anybody please advise, what should I do?

many thanks in advance

Regards
Winanjaya

vishnu_sreekumar 02-17-2012 01:56 AM

Edit /etc/security/limits.conf file and allow the user under which asterisk runs to modify the ulimit to a higher value.

Quote:

<username> hard nofile <number>

Winanjaya 02-17-2012 08:44 AM

asterisk hard nofile ??

what number should I put there?

vishnu_sreekumar 02-20-2012 12:43 AM

Well, it depends upon what your application is trying to set. Basically this is the max number upto which the user can set the ulimit value to. Check the current ulimit by executing the following command after logging in as the specific user. Start with 3 or 4 times the current value and increase if needed.
Quote:

ulimit -n


All times are GMT -5. The time now is 12:51 AM.