Hello there, I’ve configured my server for maximum 50000 open files. [root at scast1 ~]# ulimit -a ... open files (-n) 50000 ... max user processes (-u) 65535 While im doing the Load Test 1, my server only reaches ~1015 listeners. I’ve set this on etc/security/limits.conf : icecast hard nofile 50000 icecast soft nofile 60000 icecast soft nproc 65535 icecast hard nproc 65535 * hard nofile 50000 * soft nofile 60000 * soft nproc 65535 * hard nproc 65535 If I set this: [root at scast1 ~]# prlimit -n5000 -p <pid> Everything works perfectly. But if I stop or reboot my ice cast server, 1024 backs again. What can I do to save that open file setting? Regards, Pedro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20190324/f3ac8c0c/attachment.html>
On Sun, Mar 24, 2019 at 06:02:47PM +0000, Pedro M. Oliveira wrote:> If I set this: > [root at scast1 ~]# prlimit -n5000 -p <pid> > > Everything works perfectly. But if I stop or reboot my ice cast > server, 1024 backs again. > > What can I do to save that open file setting?What is starting icecast? If it's controlled by systemd, you probably want to add "LimitNOFILE=50000" to icecast's .service file. If it's the .deb produced by Xiph (which doesn't have a .service file), you'll probably want to edit /etc/init.d/icecast2 (or /etc/default/icecast2) and add prlimit --pid $$ --nofile=50000 to it. -- Paul Martin <pm at nowster.me.uk>
Can you check your /var/log/messages when you do the the test 1? Give? WARN connection/_accept_connection accept() failed with error 24: Too many open files I set this open the sysctl.conf and add this line fs.file-max = 65536 vi /etc/sysctl.conf add end of line fs.file-max = 65536 Michel Paul Martin schreef op 2019-03-24 21:26:> On Sun, Mar 24, 2019 at 06:02:47PM +0000, Pedro M. Oliveira wrote: > >> If I set this: >> [root at scast1 ~]# prlimit -n5000 -p <pid> >> >> Everything works perfectly. But if I stop or reboot my ice cast >> server, 1024 backs again. >> >> What can I do to save that open file setting? > > What is starting icecast? > > If it's controlled by systemd, you probably want to add > "LimitNOFILE=50000" to icecast's .service file. > > If it's the .deb produced by Xiph (which doesn't have a .service > file), you'll probably want to edit /etc/init.d/icecast2 (or > /etc/default/icecast2) and add > > prlimit --pid $$ --nofile=50000 > > to it.-- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20190325/42f0f79c/attachment.html>