[Asterisk-Dev] Asterisk SIP Problem
Pedro Bessa Goncalves
est-p-bgoncalves at ptinovacao.pt
Wed Jun 9 06:10:10 MST 2004
I tried ulimit -n 10000 in the shell, before running asterisk, and now it
works. Thank you :)
Pedro Goncalves
-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of Adam Hart
Sent: quarta-feira, 9 de Junho de 2004 12:48
To: asterisk-dev at lists.digium.com
Subject: Re: [Asterisk-Dev] Asterisk SIP Problem
tried ulimit -n 10000 ? (in safe_asterisk)
Pedro Bessa Goncalves wrote:
> Hi. I am having a problem with asterisk. When I have a big number of
> simultaneous SIP clients (>70) connecting to asterisk, I start having
> file limit (rlimit) problems and the clients can't connect:
>
> Jun 9 12:16:06 WARNING[5126]: Unexpected bind error: Invalid
> argument
> Jun 9 12:16:06 WARNING[5126]: Unable to create RTP session:
> Invalid argument
> Jun 9 12:16:06 WARNING[5126]: Unable to get IP of eth0: Bad
> file descriptor
> Jun 9 12:16:06 WARNING[17422]: Couldn't open file
> /home/pbg/meteo/meteomain.alaw
> Jun 9 12:16:06 WARNING[17422]: Unable to open
> /home/pbg/meteo/meteomain (format ALAW): No such file or directory
>
> Jun 9 12:16:06 WARNING[17422]: ast_streamfile failed on
> SIP/4000-ce60 for /home/pbg/meteo/meteomain
> Jun 9 12:16:06 WARNING[5126]: Alert pipe creation failed!
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate channel
structure
> Jun 9 12:16:06 NOTICE[5126]: Unable to create/find channel
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to create RTP session: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
> Jun 9 12:16:06 WARNING[5126]: Unable to allocate socket: Too
> many open files
>
> I have also tried applied the following code in asterisk.c but still had
> no luck:
>
> struct rlimit l;
>
> memset(&l, 0, sizeof(l));
> l.rlim_cur = RLIM_INFINITY;
> l.rlim_max = RLIM_INFINITY;
>
> if (setrlimit(RLIMIT_NOFILE, &l)) {
> ast_log(LOG_WARNING, "Unable to change opened files
> limit: %s\n", strerror(errno));
> }
>
> Can anyone help me??
>
> Pedro Goncalves
> www.ptinovacao.pt
>
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040609/dd60fef5/attachment.htm
More information about the asterisk-dev
mailing list