[Icecast-dev] Too many open files
marcin at saepia.net
Sat Oct 8 20:58:47 UTC 2016
It all looks like a workarounds. I would suggest using a proper solution,
such as systemd, that is present in ubuntu 16.04 by default, and where you
can raise system limits per system service just by tweaking its config file.
On 8 października 2016 at 11:37:59, Chen Wei Hsu (cwhsu1984 at gmail.com)
I am trying to stream for over 1k users on Ubuntu 16.04. I notice that when
stream connection is over 1024, it get warning like this:
WARN connection/_accept_connection accept() failed with error 24: Too many
Tried these configs and reboot, it won't work!
session required pam_limits.so
fs.file-max = 100000
# open file limit
icecast2 hard nofile 90000
icecast2 soft nofile 50000
icecast2 hard nproc 90000
icecast2 soft nproc 50000
How do I know?
ps aux | grep icecast2
max open file is still 1024
In the end, I have to add the following line to /etc/init.d/icecast2
ulimit -n 20000
And I can stream over 1k users now. There is no config about ulimit for
icecast2, and therefore, I suggest that we add something like this in
# Check if the ULIMIT is set in /etc/default/icecast2
if [ -n "$ULIMIT" ]; then
# Set the ulimits
And add a /etc/default/icecast2 with the following sample config
# Example: ULIMIT="-n 4096"
I steal these from Nginx config! Anyway, what I am saying is that we need a
config file to deal with this issue!
Icecast-dev mailing list
Icecast-dev at xiph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Icecast-dev