Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
On 09/12/2004 at 09:22 Eric wrote: Hi Sean, Thanks for your reply, but that wasn't exactly what I was getting at. I don't need to increase the system's imposed limit on the number of open files. I'm more concerned to see if anyone has run across a memory or fd leak in asterisk that sucks them all up. There should be no reason that I hit my limit of open files on this machine. Restarting asterisk immediately solved the problem, so I'm leaning towards a leak, however, I didn't have the opportunity, in the moment, to check and see how many files and what type were open. - Eric I'm pretty sure that it's a leak, if I recount a problem I have (had) when trying to register with FWD is should make it obvious. About a week or two ago I started having problems with registering with FWD using SIP, the request was sent but there was never a reply. Indeed a traceroute showed a problem at peer1.net (this is still the case). I noticed that after a few hours I was getting the same errors as you. A restart of asterisk cured the problem temporarily until a few hours later, when it reappeared. incidentally I 'fixed' the issue by using an iax2 connection to fwd instead... Andy ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Asterisk 1.0.1 Too many open files
There should be no reason that I hit my limit of open files on this machine. Restarting asterisk immediately solved the problem, so I'm leaning towards a leak, however, I didn't have the opportunity, in the moment, to check and see how many files and what type were open. This is a problem that I've also run into but I know it cannot be anything to with files system limits - at least in the obvious sense. So I'll describe my experience and it might help someone identify the root cause. When I set up my Asterisk box, it was inside our firewall. With the system working, I moved it outside the firewall but SIP phones would not connect and the console reported the chan_sip errors described. I was able to use TELNET, VNC and could call the PBX using IAX (FWD). A few days later and without, apparently, doing anything, the PBX began to work. Last weekend the errors chan_sip errors started again. I rebooted the Asterisk server. I rebooted the firewall and router. No change. So I brought the server back inside the firewall and it works just fine. Go figure. So the error cannot be anything to do with open file limits. The difference appears to be related to the site of PBX server with respect to the Bill Seddon ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
/proc/sys/fs/file-max This file defines a system-wide limit on the number of open files for all processes. (See also setrlimit(2), which can be used by a process to set the per-process limit, RLIMIT_NOFILE, on the number of files it may open.) If you get lots of error messages about running out of file handles, try increasing this value: Does asterisk set this itself or do I have to use ulimit something to do it manually? ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
Asterisk does not do anything in this vein. Simply % echo somevalue /proc/sys/fs/file-max a good starting point for this value would be double your existing value. % cat /proc/sys/fs/file-nr will give you your existing max files. I would also suggest doubling your inodes as well. % cat /proc/sys/fs/inode-nr cat /proc/sys/fs/inode-max controls this data. (Although some kernels no longer support max inodes). Try looking at man proc and search on file. Sean On Thu, 2004-12-09 at 09:30 +0100, Roy Sigurd Karlsbakk wrote: ulimit ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
Hi Sean, Thanks for your reply, but that wasn't exactly what I was getting at. I don't need to increase the system's imposed limit on the number of open files. I'm more concerned to see if anyone has run across a memory or fd leak in asterisk that sucks them all up. There should be no reason that I hit my limit of open files on this machine. Restarting asterisk immediately solved the problem, so I'm leaning towards a leak, however, I didn't have the opportunity, in the moment, to check and see how many files and what type were open. - Eric On Wed, 08 Dec 2004 16:48:19 + Sean Cook [EMAIL PROTECTED] wrote: Easiest thing (as long as filedescriptors are being closed properly) is to increase the number of allowed open files: /proc/sys/fs/file-max This file defines a system-wide limit on the number of open files for all processes. (See also setrlimit(2), which can be used by a process to set the per-process limit, RLIMIT_NOFILE, on the number of files it may open.) If you get lots of error messages about running out of file handles, try increasing this value: echo 10 /proc/sys/fs/file-max The kernel constant NR_OPEN imposes an upper limit on the value that may be placed in file-max. If you increase /proc/sys/fs/file-max, be sure to increase /proc/sys/fs/inode-max to 3-4 times the new value of /proc/sys/fs/file-max, or you will run out of inodes. On Wed, 2004-12-08 at 16:26 -0500, Eric wrote: My asterisk process produced the following errors this morning: Dec 8 10:44:07 WARNING[50315282]: rtp.c:829 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:2352 sip_alloc: Unable to create RTP session: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:8024 sip_request: Unable to build sip pvt data for '[EMAIL PROTECTED]' Dec 8 10:44:07 NOTICE[50315282]: app_dial.c:743 dial_exec: Unable to create channel of type 'SIP' I don't think it's related to the unreachable peer thing from last year, this machine only has one peer and a TE405p acting as a pure PSTN gateway. I restarted the process to fix the problem, however, I was wondering if anyone saw this problem with 1.0.1, and if so, any chance it was fixed for 1.0.2 or 1.0.3? Thanks. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
On Thursday 09 December 2004 14:22, Eric wrote: Hi Sean, Thanks for your reply, but that wasn't exactly what I was getting at. I don't need to increase the system's imposed limit on the number of open files. I'm more concerned to see if anyone has run across a memory or fd leak in asterisk that sucks them all up. There should be no reason that I hit my limit of open files on this machine. Restarting asterisk immediately solved the problem, so I'm leaning towards a leak, however, I didn't have the opportunity, in the moment, to check and see how many files and what type were open. If you suspect an fd leak then check out /proc/pid/fd. On Wed, 08 Dec 2004 16:48:19 + Sean Cook [EMAIL PROTECTED] wrote: Easiest thing (as long as filedescriptors are being closed properly) is to increase the number of allowed open files: /proc/sys/fs/file-max This file defines a system-wide limit on the number of open files for all processes. (See also setrlimit(2), which can be used by a process to set the per-process limit, RLIMIT_NOFILE, on the number of files it may open.) If you get lots of error messages about running out of file handles, try increasing this value: echo 10 /proc/sys/fs/file-max The kernel constant NR_OPEN imposes an upper limit on the value that may be placed in file-max. If you increase /proc/sys/fs/file-max, be sure to increase /proc/sys/fs/inode-max to 3-4 times the new value of /proc/sys/fs/file-max, or you will run out of inodes. On Wed, 2004-12-08 at 16:26 -0500, Eric wrote: My asterisk process produced the following errors this morning: Dec 8 10:44:07 WARNING[50315282]: rtp.c:829 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:2352 sip_alloc: Unable to create RTP session: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:8024 sip_request: Unable to build sip pvt data for '[EMAIL PROTECTED]' Dec 8 10:44:07 NOTICE[50315282]: app_dial.c:743 dial_exec: Unable to create channel of type 'SIP' I don't think it's related to the unreachable peer thing from last year, this machine only has one peer and a TE405p acting as a pure PSTN gateway. I restarted the process to fix the problem, however, I was wondering if anyone saw this problem with 1.0.1, and if so, any chance it was fixed for 1.0.2 or 1.0.3? Thanks. Why the hell can people not delete the signatures from the posts? ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
I don't need to increase the system's imposed limit on the number of open files. I'm more concerned to see if anyone has run across a memory or fd leak in asterisk that sucks them all up. My apologies. If you are looking for leaking fd's in asterisk, I am afraid I am not much help. There should be no reason that I hit my limit of open files on this machine. Restarting asterisk immediately solved the problem, so I'm leaning towards a leak, however, I didn't have the opportunity, in the moment, to check and see how many files and what type were open. This may not necessarily be true. If you are doing a lot of traffic on that box you could quite easily chew up 50,000 fd with out much effort. A simple way to test this is to increase the number of fd allowed and see if the system continues to creap toward that number. Although, you could tell if that was the case by when you run out of fd's. If you periodically run out during peak usage and then stablize after peek usage... then simply increase... if at peak usage you run out of fd's and it stays that way... leaking fd (i guess leaking is incorrect, technically it is not closing fd properly or incorrectly scoping fd... but that is symantics). ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Asterisk 1.0.1 Too many open files
My asterisk process produced the following errors this morning: Dec 8 10:44:07 WARNING[50315282]: rtp.c:829 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:2352 sip_alloc: Unable to create RTP session: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:8024 sip_request: Unable to build sip pvt data for '[EMAIL PROTECTED]' Dec 8 10:44:07 NOTICE[50315282]: app_dial.c:743 dial_exec: Unable to create channel of type 'SIP' I don't think it's related to the unreachable peer thing from last year, this machine only has one peer and a TE405p acting as a pure PSTN gateway. I restarted the process to fix the problem, however, I was wondering if anyone saw this problem with 1.0.1, and if so, any chance it was fixed for 1.0.2 or 1.0.3? Thanks. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk 1.0.1 Too many open files
Easiest thing (as long as filedescriptors are being closed properly) is to increase the number of allowed open files: /proc/sys/fs/file-max This file defines a system-wide limit on the number of open files for all processes. (See also setrlimit(2), which can be used by a process to set the per-process limit, RLIMIT_NOFILE, on the number of files it may open.) If you get lots of error messages about running out of file handles, try increasing this value: echo 10 /proc/sys/fs/file-max The kernel constant NR_OPEN imposes an upper limit on the value that may be placed in file-max. If you increase /proc/sys/fs/file-max, be sure to increase /proc/sys/fs/inode-max to 3-4 times the new value of /proc/sys/fs/file-max, or you will run out of inodes. On Wed, 2004-12-08 at 16:26 -0500, Eric wrote: My asterisk process produced the following errors this morning: Dec 8 10:44:07 WARNING[50315282]: rtp.c:829 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:2352 sip_alloc: Unable to create RTP session: Too many open files Dec 8 10:44:07 WARNING[50315282]: chan_sip.c:8024 sip_request: Unable to build sip pvt data for '[EMAIL PROTECTED]' Dec 8 10:44:07 NOTICE[50315282]: app_dial.c:743 dial_exec: Unable to create channel of type 'SIP' I don't think it's related to the unreachable peer thing from last year, this machine only has one peer and a TE405p acting as a pure PSTN gateway. I restarted the process to fix the problem, however, I was wondering if anyone saw this problem with 1.0.1, and if so, any chance it was fixed for 1.0.2 or 1.0.3? Thanks. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users