Alexandru Matei
2013-Feb-20 17:38 UTC
[Icecast] maximum file descriptor limit - icecast freeze
Hi! A week ago I had a blocked icecast server because of the open files. I read some posts about the 1024 fd limit but this is not the case. My stations rarely has 300 listeners. From the log I can see that around 3PM I had 7 listeners on a mount and 35 on another one. Then, suddenly the only line written to the log is [2013-02-13 15:59:06] WARN connection/accept_client accept() failed with error 24: Too many open files After some hours I found out about this issue and had to kill icecast. The stop command didn't work. This is the only time this happened. If it were about the number of listerners they would have showed up in the log... So...could have been an attack? The others system logs were clean. I'm running ubuntu 10.04 lts and icecast 2.3.3 kh5 branch - build 30-gfe06a77 Alexandru P.S. File log at this linkhttp://ortodoxradio.ro/error.log.zip
Rücker Thomas
2013-Feb-21 07:29 UTC
[Icecast] maximum file descriptor limit - icecast freeze
On 20/02/13 19:38, Alexandru Matei wrote:> Hi! > > A week ago I had a blocked icecast server because of the open files. I > read some posts about the 1024 fd limit but this is not the case. My > stations rarely has 300 listeners. From the log I can see that around > 3PM I had 7 listeners on a mount and 35 on another one. Then, suddenly > the only line written to the log is > [2013-02-13 15:59:06] WARN connection/accept_client accept() failed > with error 24: Too many open files > After some hours I found out about this issue and had to kill icecast. > The stop command didn't work. This is the only time this happened. > If it were about the number of listerners they would have showed up in > the log... So...could have been an attack? The others system logs were > clean.Sounds like that KH-build is leaking file descriptors under certain circumstances.> I'm running ubuntu 10.04 lts and icecast 2.3.3 kh5 branch - build 30-gfe06a77Any particular reason you are using icecast-kh instead of the icecast2 package from the ubuntu repositories? Thomas
Alexandru Matei
2013-Feb-21 19:41 UTC
[Icecast] maximum file descriptor limit - icecast freeze
I need the flv wrapping of the aacp streams. On 21.02.2013 09:29, R?cker Thomas wrote:> On 20/02/13 19:38, Alexandru Matei wrote: >> Hi! >> >> A week ago I had a blocked icecast server because of the open files. I >> read some posts about the 1024 fd limit but this is not the case. My >> stations rarely has 300 listeners. From the log I can see that around >> 3PM I had 7 listeners on a mount and 35 on another one. Then, suddenly >> the only line written to the log is >> [2013-02-13 15:59:06] WARN connection/accept_client accept() failed >> with error 24: Too many open files >> After some hours I found out about this issue and had to kill icecast. >> The stop command didn't work. This is the only time this happened. >> If it were about the number of listerners they would have showed up in >> the log... So...could have been an attack? The others system logs were >> clean. > Sounds like that KH-build is leaking file descriptors under certain > circumstances. > >> I'm running ubuntu 10.04 lts and icecast 2.3.3 kh5 branch - build 30-gfe06a77 > Any particular reason you are using icecast-kh instead of the icecast2 > package from the ubuntu repositories? > > Thomas > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast
Philipp Schafft
2013-Feb-26 12:54 UTC
[Icecast] maximum file descriptor limit - icecast freeze
reflum, On Thu, 2013-02-21 at 09:29 +0200, R?cker Thomas wrote:> On 20/02/13 19:38, Alexandru Matei wrote: > > A week ago I had a blocked icecast server because of the open files. I > > read some posts about the 1024 fd limit but this is not the case. My > > stations rarely has 300 listeners. From the log I can see that around > > 3PM I had 7 listeners on a mount and 35 on another one. Then, suddenly > > the only line written to the log is > > [2013-02-13 15:59:06] WARN connection/accept_client accept() failed > > with error 24: Too many open files > > After some hours I found out about this issue and had to kill icecast. > > The stop command didn't work. This is the only time this happened. > > If it were about the number of listerners they would have showed up in > > the log... So...could have been an attack? The others system logs were > > clean. > > Sounds like that KH-build is leaking file descriptors under certain > circumstances.To debug: Consider running it with valgrind. It will automatically detect some program errors. IIRC leaked fhs are only listed at termination so run it for some time and then exit it so you get a nice report. use at minimum -v. See --help.> > I'm running ubuntu 10.04 lts and icecast 2.3.3 kh5 branch - build 30-gfe06a77Please note that kh isn't offically supported by the xiph foundation. So you likly need to handle it yourself somehow or pay someone to fix it. -- Philipp. (Rah of PH2) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 482 bytes Desc: This is a digitally signed message part Url : http://lists.xiph.org/pipermail/icecast/attachments/20130226/1c3dd4c7/attachment.pgp