Maysara A. Abdulhaq
2007-Apr-18 05:55 UTC
[asterisk-users] asterisk unable to create files, too many files open
hello, im having trouble with asterisk with medium load, it seems im running out of files, here is a chunk of the logs with grep "\(file\|pipe\)": Apr 18 15:40:46 WARNING[11644] res_agi.c: Unable to create toast pipe: Too many open files Apr 18 15:40:46 WARNING[11574] channel.c: Channel allocation failed: Can't create alert pipe! Apr 18 15:40:46 WARNING[11574] channel.c: Channel allocation failed: Can't create alert pipe! Apr 18 15:40:46 ERROR[11643] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files Apr 18 15:40:46 ERROR[11643] cdr_custom.c: Unable to re-open master file /var/log/asterisk/cdr-custom/Master.csv : Too many open files Apr 18 15:40:46 ERROR[11645] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files i tried to increase the number in /proc/sys/fs/file-max , which was: 203511 and file-nr was 2112 0 203511 so i did : echo 400176 >/proc/sys/fs/file-max but it didn't help, what could possibly make this happen, and does asterisk need that huge number of files ? this machine takes less than ~40 calls at peaks! this is asterisk 1.2.17 running on Debian etch 2.6.18-4-amd64 #1 SMP on xeon cpu, i got the same behaviour with 1.2.16 too! -- uwe maysara -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070418/fefa53d4/attachment.htm
matteo brancaleoni
2007-Apr-18 06:26 UTC
[asterisk-users] asterisk unable to create files, too many files open
Hi, On Wed, 2007-04-18 at 15:56 +0300, Maysara A. Abdulhaq wrote:> hello,> i tried to increase the number in /proc/sys/fs/file-max , which was: > 203511 > and file-nr was > 2112 0 203511 > so i did : > echo 400176 >/proc/sys/fs/file-max > but it didn't help, what could possibly make this happen, and does > asterisk need that huge number of files ? this machine takes less than > ~40 calls at peaks!that value is a system value, not a process one. You should increase asterisk process file limit with "ulimin -n" before starting *. Eg ulimit -n 8192 will increase max files from the default 1024 to 8192. Greetings, matteo. -- Matteo Brancaleoni R&D Director Tel :+39.02.70633354 Voip :sip:matteo@sip.voismart.it
Giorgio Incantalupo
2007-Apr-18 06:39 UTC
[asterisk-users] asterisk unable to create files, too many files open
Hi Maysara, I have your same problem. are you using mISDN? If yes update your driver. Giorgio Incantalupo Maysara A. Abdulhaq wrote:> hello, > > im having trouble with asterisk with medium load, it seems im running > out of files, here is a chunk of the logs with grep "\(file\|pipe\)": > > Apr 18 15:40:46 WARNING[11644] res_agi.c: Unable to create toast pipe: > Too many open files > Apr 18 15:40:46 WARNING[11574] channel.c: Channel allocation failed: > Can't create alert pipe! > Apr 18 15:40:46 WARNING[11574] channel.c: Channel allocation failed: > Can't create alert pipe! > Apr 18 15:40:46 ERROR[11643] cdr_csv.c: Unable to re-open master file > /var/log/asterisk//cdr-csv//Master.csv : Too many open files > Apr 18 15:40:46 ERROR[11643] cdr_custom.c: Unable to re-open master > file /var/log/asterisk/cdr-custom/Master.csv : Too many open files > Apr 18 15:40:46 ERROR[11645] cdr_csv.c: Unable to re-open master file > /var/log/asterisk//cdr-csv//Master.csv : Too many open files > > i tried to increase the number in /proc/sys/fs/file-max , which was: > 203511 > and file-nr was > 2112 0 203511 > so i did : > echo 400176 >/proc/sys/fs/file-max > but it didn't help, what could possibly make this happen, and does > asterisk need that huge number of files ? this machine takes less than > ~40 calls at peaks! > > this is asterisk 1.2.17 running on Debian etch 2.6.18-4-amd64 #1 SMP > on xeon cpu, i got the same behaviour with 1.2.16 too! > > -- > uwe maysara > ------------------------------------------------------------------------ > > _______________________________________________ > --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 >