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