[asterisk-users] Too Many Open Files, Hung SIP Sessions, Can I Increase File Count?

Patrick asterisk-list at puzzled.xs4all.nl
Thu Mar 22 03:05:24 MST 2007


On Thu, 2007-03-22 at 00:55 +0000, phil.dawson at marnock.com wrote:
> Here's a snippet taken from the readme.
> 
> 
> --------------------------------------------------------------------------------------
> 
> * FILE DESCRIPTORS
> 
>   Depending on the size of your system and your configuration,
> Asterisk can consume a large number of file descriptors.  In UNIX,
> file descriptors are used for more than just files on disk.  File
> descriptors are also used for handling network communication
> (e.g. SIP, IAX2, or H.323 calls) and hardware access (e.g. analog and
> digital trunk hardware).  Asterisk accesses many on-disk files for
> everything from configuration information to voicemail storage.
> 
>   Most systems limit the number of file descriptors that Asterisk can
> have open at one time.  This can limit the number of simultaneous
> calls that your system can handle.  For example, if the limit is set
> at 1024 (a common default value) Asterisk can handle approxiately 150
> SIP calls simultaneously.  To change the number of file descriptors
> follow the instructions for your system below:
> 
> == PAM-based Linux System ==
> 
>   If your system uses PAM (Pluggable Authentication Modules) edit
> /etc/security/limits.conf.  Add these lines to the bottom of the file:
> 
> root            soft    nofile          4096
> root            hard    nofile          8196
> asterisk        soft    nofile          4096
> asterisk        hard    nofile          8196

You may also want to add:
asterisk	soft	core	0

So asterisk can dump core when it is told to do so.

Regards,
Patrick




More information about the asterisk-users mailing list