|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Nov 2013
Posts: 15
|
sc_serv max open files
Hello,
I'm trying to change the maximum number of open files for the process sc_serv in my private Shoutcast DNAS 2.2 server running on Ubuntu 12.04.3 LTS 64 bit. The system itself (sysctl -a) has a safe 202022 max open files limit. I changed this value at "user level" to 65536 (both hard and soft limits) by editing the /etc/security/limits.conf (and by requiring pam_limits.so) and also run "ulimit -n 65536", but if I run this command: cat /proc/(sc_serv's PID)/limits ... it shows "Max open files 1024 (soft limit) and 4096 (hard limit). Accordingly, Shoutcast's log states 1024 as maximum open files limit. It sounds like sc_serv uses a "self per process" setting when it starts up, ignoring system wide and per user settings. Is there a way to change this? Is this a known limit or bug? Thanks a lot in advance for your support and your great work! Cheers!!! Cande |
|
|
|
|
#2 |
|
Junior Member
Join Date: Nov 2013
Posts: 15
|
Update!
I found that after booting the server and (auto) starting sc_serv via shell script, the open files limit is 1024 despite changes done in limits.conf and PAM files, but if I manually stop sc_serv, issue the "ulimit -n 65536" and start sc_serv again, then the limit is correctly set to 65536 max open files! So, the new question is: how can I make sc_serv to acquire the desired "ulimit -n" at system boot? I am using Webmin to manage the server and my suspect is that this module changes the limits regardless of limits.conf/PAM... Any hints? Thanks again! Cande |
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|