Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Closed Thread
Thread Tools Search this Thread Display Modes
Old 18th November 2013, 13:06   #1
Cande
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
Cande is offline  
Old 18th November 2013, 21:38   #2
Cande
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
Cande is offline  
Closed Thread
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump