[Asterisk-Users] Unable to allocate socket: Too may open files
Matt Roth
mroth at imminc.com
Wed Apr 19 09:25:39 MST 2006
Stefan Günther wrote:
>Hello,
>
>we are curently benchmarking an asterisk system
>1034 sip users are logged into this system and the test software is
>trying to establish 400 concurrent calls.
>
>In the CLI I see the following messages:
>
>Apr 19 14:20:51 WARNING[4045]: rtp.c:911 ast_rtcp_new: Unable to
>allocate socket: Too many open files
>Apr 19 14:20:51 WARNING[4045]: acl.c:306 ast_ouraddrfor: Cannot create
>socket
>Apr 19 14:20:51 WARNING[4045]: channel.c:562 ast_channel_alloc: Channel
>allocation failed: Can't create alert pipe!
>Apr 19 14:20:51 WARNING[4045]: chan_sip.c:2748 sip_new: Unable to
>allocate SIP channel structure
>Apr 19 14:20:51 NOTICE[4045]: app_dial.c:1029 dial_exec_full: Unable to
>create channel of type 'SIP' (cause 0 - Unknown)
>Apr 19 14:20:51 WARNING[4065]: rtp.c:911 ast_rtcp_new: Unable to
>allocate socket: Too many open files
>Apr 19 14:20:51 WARNING[4065]: acl.c:306 ast_ouraddrfor: Cannot create
>socket
>
>I have set "fs.file-max = 65535"in /etc/sysctl.conf and in
>/etc/security/limit.conf (according to the wiki):
>
>asterisk soft nofile 65535
>asterisk hard nofile 65535
>
>What more can I do to increase the number of open files?
>Is it possible to see how many files asterisk uses and how many files it
>needs?
>
>Thanks for your help,
>
>Stefan
>
>
>
Stefan,
Take a look at this post:
http://lists.digium.com/pipermail/asterisk-users/2006-April/147204.html
Additionally, are you running Asterisk as the user "asterisk" or as
"root"? If you are running Asterisk as "root", you'll want to change
your entries in limits.conf to reflect that as follows:
root soft nofile 65535
root hard nofile 65535
I'm also interested in large-scale single server setups. We have one of
our own in production now. During our scalability testing, we used an
Abacus 5000 to digitally record 512 simultaneous SIP-to-SIP calls on the
system.
Would you please post the hardware you are running Asterisk on, your
configuration (with a focus on scalability optimizations and tweaks),
and your testing methods? I'd be glad to share information with you to
help you achieve your goal.
Thank you,
Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer
More information about the asterisk-users
mailing list