/srv/irclogs.ubuntu.com/2013/10/10/#ubuntu-us-or.txt

blkperlslangasek: I'm mad about this21:46
blkperlhttps://lists.ubuntu.com/archives/ubuntu-devel/2010-September/031493.html21:46
blkperlgrumpy...21:46
blkperlso I have to modify the init script for slapd21:48
blkperl?21:48
slangasekblkperl: 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 409622:06
slangasekblkperl: which means that any process which needs more files can call setrlimit() to raise its own limit, privileged or not22:06
blkperlslangasek: well slapd is either not doing that or needs more than 409622:08
slangasekwasn't it y'all's slapd server that was leaking fds once before?22:09
blkperlyeah we fixed that :P22:09
slangasekand now it's running out of fds for legitimate reasons? :)22:09
blkperllast time is was memory22:09
blkperlnot fds22:10
slangasekok22:11
slangasekdo you have more than 1000 simultaneous clients?22:11
blkperlnope22:11
blkperlOct 10 11:58:03 arya slapd[929]: warning: cannot open /etc/hosts.deny: Too many open files22:12
blkperlgetting those in the logs22:12
slangasekhow many simultaneous clients *do* you have?22:13
slangasekraising the fds is doable, but if the real problem is an fd leak...22:13
slangasek(lsof -p $(pidof slapd) -n?)22:13
blkperl827 at the moment22:15
blkperlnow 85822:15
blkperlhmm maybe your right and its leaking22:16
blkperlwell it matches with number of connections though22:19
slangasekhow are you measuring the number of connections?  *should* there be that many simultaneous clients?22:24
slangasekif you're just saying slapd agrees with itself about how many connections there are"...22:25
blkperlslangasek: idk, nfs/autofs/mail all use it I can't tell if they should be there22:27
slangasekok22:28
slangasekis that on the right order of magnitude for the number of client systems you have?22:29
slangasekblkperl: 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 off22:30
slangasekblkperl: 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:31
blkperlslangasek: how can you put it in /etc/default/slapd its a config file?22:33
slangasekblkperl: <cough> it's a shell fragment that's sourced by the init script22:35
blkperloh.. is that because ulimit is a shell builtin22:53
blkperlso source just works22:53
blkperlhmm its back down to 41923:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!