[21:46] slangasek: I'm mad about this [21:46] https://lists.ubuntu.com/archives/ubuntu-devel/2010-September/031493.html [21:46] grumpy... [21:48] so I have to modify the init script for slapd [21:48] ? [22:06] blkperl: so, subsequent to that mail, the compromise we have in place is that the default *soft* limit for open files is 1024, but the hard limit is higher, at 4096 [22:06] blkperl: which means that any process which needs more files can call setrlimit() to raise its own limit, privileged or not [22:08] slangasek: well slapd is either not doing that or needs more than 4096 [22:09] wasn't it y'all's slapd server that was leaking fds once before? [22:09] yeah we fixed that :P [22:09] and now it's running out of fds for legitimate reasons? :) [22:09] last time is was memory [22:10] not fds [22:11] ok [22:11] do you have more than 1000 simultaneous clients? [22:11] nope [22:12] Oct 10 11:58:03 arya slapd[929]: warning: cannot open /etc/hosts.deny: Too many open files [22:12] getting those in the logs [22:13] how many simultaneous clients *do* you have? [22:13] raising the fds is doable, but if the real problem is an fd leak... [22:13] (lsof -p $(pidof slapd) -n?) [22:15] 827 at the moment [22:15] now 858 [22:16] hmm maybe your right and its leaking [22:19] well it matches with number of connections though [22:24] how are you measuring the number of connections? *should* there be that many simultaneous clients? [22:25] if you're just saying slapd agrees with itself about how many connections there are"... [22:27] slangasek: idk, nfs/autofs/mail all use it I can't tell if they should be there [22:28] ok [22:29] is that on the right order of magnitude for the number of client systems you have? [22:30] blkperl: I guess I would say, cowboy a change to the slapd init script to add 'ulimit -n 4096' and see if the fd usage levels off [22:31] blkperl: btw, if you feel strongly about not editing the init script, you could drop it in /etc/default/slapd instead ... and it would work ;) [22:33] slangasek: how can you put it in /etc/default/slapd its a config file? [22:35] blkperl: it's a shell fragment that's sourced by the init script [22:53] oh.. is that because ulimit is a shell builtin [22:53] so source just works [23:09] hmm its back down to 419