<div dir="ltr"><span style="font-size:12.8px">50771 is the PID. I am talking about the user. for instances if running as root (which you should never do) then:</span><br><div><span style="font-size:12.8px"> lsof -u root | wc -l</span><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 1:31 PM, Ahmed Munir <span dir="ltr"><<a href="mailto:ahmedmunir007@gmail.com" target="_blank">ahmedmunir007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br>[root@abc asterisk]# lsof -u 50771 | wc -l<br>0<br><br>BTW, I'm using CentOS 6.5<br><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"><div dir="ltr"><br><div class="gmail_extra"><div><div class="m_-5708414748112430641gmail-h5"><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">
Date: Thu, 13 Oct 2016 10:20:19 -0400<br>
From: Dovid Bender <<a href="mailto:dovid@telecurve.com" target="_blank">dovid@telecurve.com</a>><br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
        <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.c<wbr>om</a>><br>
Subject: Re: [asterisk-users] Openfile Issue<br>
Message-ID:<br>
        <CAM3TTh1yvoHmRUBb=<a href="mailto:EJbEb-HMmni-5ExKDCUMgQhnAeGF70qOA@mail.gmail.com" target="_blank">EJbEb-HMmni<wbr>-5ExKDCUMgQhnAeGF70qOA@mail.gm<wbr>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" target="_blank">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           Units<br>
> Max cpu time              unlimited            unlimited            seconds<br>
> Max file size             unlimited            unlimited            bytes<br>
> Max data size             unlimited            unlimited            bytes<br>
> Max stack size            10485760             unlimited            bytes<br>
> Max core file size        unlimited            unlimited            bytes<br>
> Max resident set          unlimited            unlimited            bytes<br>
> Max processes             256389               256389<br>
> processes<br>
> Max open files            20000                25000                files<br>
> Max locked memory         65536                65536                bytes<br>
> Max address space         unlimited            unlimited            bytes<br>
> Max file locks            unlimited            unlimited            locks<br>
> Max pending signals       256389               256389               signals<br>
> Max msgqueue size         819200               819200               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" target="_blank">dovid@telecurve.com</a>><br>
>> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
>>         <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.<wbr>com</a>><br>
>> Subject: Re: [asterisk-users] Openfile Issue<br>
>> Message-ID:<br>
>>         <<a href="mailto:CAM3TTh2ykzifYwjoqF1EZkn9qRuVLHLi38cMPP6UxJsqcK4pQg@mail.gm" target="_blank">CAM3TTh2ykzifYwjoqF1EZkn9qRu<wbr>VLHLi38cMPP6UxJsqcK4pQg@mail.g<wbr>m</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" target="_blank">ahmedmunir007@gmail.com</a>><br>
>> wrote:<br>
>><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div></div></div></div></div></blockquote></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-5708414748112430641gmail_signature">Regards,<br><br>Ahmed Munir Chohan<br><br></div>
</font></span></div></div>
<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></blockquote></div><br></div>