View Single Post
Old 20th November 2013, 10:05   #16
milosz
Member
 
Join Date: Apr 2006
Location: chicago
Posts: 70
I've limited listeners to 250 on primary and secondary servers, and I've had no problems with DNAS running out of file handles for over a week. So I don't think there's some ongoing process on the box that is eating up file handles as time goes on. It's sc-serv that somehow thinks it has run out of file handles when close to 300 users connect even though the hard and soft limits for open files is set at 65535 (which is the Linux max.)

I don't understand why, but that's the conclusion I've come to. At some point as connected listeners approach 300, sc_serv **THINKS** there are no more file handles, even though there are plenty.

I believe that sc_serv runs as root on my machine, but even if it's not running as root, I have implemented 65535 as hard and soft limits for all users via PAM, so no matter what user sc_serv thinks it is, it will have 65535 file handles to play with.
milosz is offline