[Asterisk-Users] Unable to allocate socket: Too may open files
Oscar Carriles
ocarriles at infodax.com.ar
Wed Apr 19 05:51:17 MST 2006
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 at lists.digium.com
[mailto:asterisk-users-bounces at 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 at 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
More information about the asterisk-users
mailing list