<div dir="ltr">See below output;<br><br>[root@abc ~]# lsof -u root | wc -l<br>5116<br><br><div><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
From: Dovid Bender <<a href="mailto:dovid@telecurve.com">dovid@telecurve.com</a>><br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
<<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.<wbr>com</a>><br>
Subject: Re: [asterisk-users] Openfile Issue<br>
Message-ID:<br>
<<a href="mailto:CAM3TTh3QA3AqrNNGC1GuSHPGzW1-hGtRPg5hByM1QpBvGcb1Yg@mail.gmail.com">CAM3TTh3QA3AqrNNGC1GuSHPGzW1-<wbr>hGtRPg5hByM1QpBvGcb1Yg@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
50771 is the PID. I am talking about the user. for instances if running as<br>
root (which you should never do) then:<br>
lsof -u root | wc -l<br>
<br>
On Thu, Oct 13, 2016 at 1:31 PM, Ahmed Munir <<a href="mailto:ahmedmunir007@gmail.com">ahmedmunir007@gmail.com</a>><br>
wrote:<br>
<br>
><br>
> [root@abc asterisk]# lsof -u 50771 | wc -l<br>
> 0<br>
><br>
> BTW, I'm using CentOS 6.5<br>
><br>
><br>
><br>
>><br>
>> Date: Thu, 13 Oct 2016 10:20:19 -0400<br>
>>> From: Dovid Bender <<a href="mailto:dovid@telecurve.com">dovid@telecurve.com</a>><br>
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
>>> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.<wbr>com</a>><br>
>>> Subject: Re: [asterisk-users] Openfile Issue<br>
>>> Message-ID:<br>
>>> <CAM3TTh1yvoHmRUBb=<a href="mailto:EJbEb-HMmni-5ExKDCUMgQhnAeGF70qOA@mail.gm">EJbEb-<wbr>HMmni-5ExKDCUMgQhnAeGF70qOA@<wbr>mail.gm</a><br>
>>> <a href="http://ail.com" rel="noreferrer" target="_blank">ail.com</a>><br>
>>> Content-Type: text/plain; charset="utf-8"<br>
>>><br>
>>> Strange. What's the output of:<br>
>>> lsof -u <USER RUNNING ASTERISK> | wc -l<br>
>>><br>
>>> I know that on some CentOS7 setups we needed to remove the<br>
>>> file 90-nproc.conf as well as add to the Asterisk init script:<br>
>>> ulimit -s unlimited<br>
>>> ulimit -n 65535<br>
>>> ulimit -Hn 65535<br>
>>> ulimit -u 65535<br>
>>> ulimit -Hu 65535<br>
>>><br>
>>><br>
>>><br>
>>> On Thu, Oct 13, 2016 at 9:59 AM, Ahmed Munir <<a href="mailto:ahmedmunir007@gmail.com">ahmedmunir007@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>> ><br>
>>> > See below;<br>
>>> ><br>
>>> > [root@abc asterisk]# cat /proc/50771/limits<br>
>>> > Limit Soft Limit Hard Limit<br>
>>> Units<br>
>>> > Max cpu time unlimited unlimited<br>
>>> seconds<br>
>>> > Max file size unlimited unlimited<br>
>>> bytes<br>
>>> > Max data size unlimited unlimited<br>
>>> bytes<br>
>>> > Max stack size 10485760 unlimited<br>
>>> bytes<br>
>>> > Max core file size unlimited unlimited<br>
>>> bytes<br>
>>> > Max resident set unlimited unlimited<br>
>>> bytes<br>
>>> > Max processes 256389 256389<br>
>>> > processes<br>
>>> > Max open files 20000 25000<br>
>>> files<br>
>>> > Max locked memory 65536 65536<br>
>>> bytes<br>
>>> > Max address space unlimited unlimited<br>
>>> bytes<br>
>>> > Max file locks unlimited unlimited<br>
>>> locks<br>
>>> > Max pending signals 256389 256389<br>
>>> signals<br>
>>> > Max msgqueue size 819200 819200<br>
>>> bytes<br>
>>> > Max nice priority 0 0<br>
>>> > Max realtime priority 0 0<br>
>>> > Max realtime timeout unlimited unlimited us<br>
>>> ><br>
>>> ><br>
>>> > Date: Thu, 13 Oct 2016 09:37:34 -0400<br>
>>> >> From: Dovid Bender <<a href="mailto:dovid@telecurve.com">dovid@telecurve.com</a>><br>
>>> >> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
>>> >> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.<wbr>com</a>><br>
>>> >> Subject: Re: [asterisk-users] Openfile Issue<br>
>>> >> Message-ID:<br>
>>> >> <<a href="mailto:CAM3TTh2ykzifYwjoqF1EZkn9qRuVLHLi38cMPP6UxJsqcK4pQg@mail.gm">CAM3TTh2ykzifYwjoqF1EZkn9qRuV<wbr>LHLi38cMPP6UxJsqcK4pQg@mail.gm</a><br>
>>> >> <a href="http://ail.com" rel="noreferrer" target="_blank">ail.com</a>><br>
>>> >> Content-Type: text/plain; charset="utf-8"<br>
>>> >><br>
>>> >> What do you get when you do:<br>
>>> >> cat /proc/<PID OF ASTERISK>/limits ?<br>
>>> >><br>
>>> >> On Thu, Oct 13, 2016 at 9:30 AM, Ahmed Munir <<a href="mailto:ahmedmunir007@gmail.com">ahmedmunir007@gmail.com</a><br>
>>> ><br>
>>> >> wrote:<br>
>>> >><br>
>>><br>
>> --<br>
> Regards,<br>
><br>
> Ahmed Munir Chohan<br>
><br>
><br>
> --<br>
> ______________________________<wbr>______________________________<wbr>_________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016<br>
> <a href="http://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">http://www.asterisk.org/<wbr>community/astricon-user-<wbr>conference</a><br>
><br>
> New to Asterisk? Start here:<br>
> <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.digium.com/pipermail/asterisk-users/attachments/20161013/68e2c291/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>pipermail/asterisk-users/<wbr>attachments/20161013/68e2c291/<wbr>attachment-0001.html</a>><br>
<br></blockquote></div><br clear="all"><br>-- <br><div class="gmail_signature">Regards,<br><br>Ahmed Munir Chohan<br><br></div>
</div></div></div>