Stefan Günther
2006-Apr-19 05:25 UTC
[Asterisk-Users] Unable to allocate socket: Too may open files
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
--
********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Moltkestrasse 49 D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
Schulungen Installationen
Beratung Support
Voice-over-IP-L?sungen
********************************************
Oscar Carriles
2006-Apr-19 05:51 UTC
[Asterisk-Users] Unable to allocate socket: Too may open files
Try lsof command in order to see what open files are attached in one
moment
Something like that will help:
lsof | wc -l (to get the count)
lsof | grep <pid> ( to see only the files attached to one asterisk
process)
hope it helps
Ing. Oscar Andr?s Carriles
Presidente
InFoDaX Consultants
Nicol?s Jorge 994 (B1706AVA) Haedo
Buenos Aires, Argentina
Tel: 54 11 4650 1775
Fax: 54 11 4650 4295
www.infodax.com.ar
-----Mensaje original-----
De: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] En nombre de Stefan
G?nther
Enviado el: Mi?rcoles, 19 de Abril de 2006 09:25 a.m.
Para: asterisk-users@lists.digium.com
Asunto: [Asterisk-Users] Unable to allocate socket: Too may open files
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
--
********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Moltkestrasse 49 D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
Schulungen Installationen
Beratung Support
Voice-over-IP-L?sungen
********************************************
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/318 - Release Date:
18/04/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/318 - Release Date:
18/04/2006
Matt Roth
2006-Apr-19 09:25 UTC
[Asterisk-Users] Unable to allocate socket: Too may open files
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