Hi, I am having trouble increasing the openfile limit in a default
install of OpenBSD 4.6 x64 from the default setting of 128 to say 5000.
I want to run Pound (reverse http proxy) stably without it stopping at
random times (Always seems to be the weekend) and to do that I need to
crank up the openfile limit. I think Pound runs with the following
account settings.... Type=deamon, user = _pound , group= _pound
I have tried tweaking a number of settings but haven't managed to get
the setting above 1024. Below are some of the settings we have tried
changing but without complete sucess. I should say that my testing
strategy is just to login as root and do a ulimit and see what is
returned, I don't know how to test the openfile limit for a deamon account.
On a default install doing a ulimit -n or -a returns an openfile limit
of 128
I know that if I do a ulimit -n 10000 the limit get's set at maximum of
7030. I don't know if doing this change effects other users and I am
pretty sure it doesn't survive a reboot.
I've done "sysctl kern.maxfiles=3000" for example but if I do a ulimit
-n after I get a different result although I can't remember what it was
I also tried editing the sysctl.conf file and put the kern.maxfiles
entry in there but had similar results !
I've edited the login.conf file and changed the staff, default and the
daemon entries eg :openfiles-cur=2222:\ and then rebooted but the
highest I could get the openfile limit to is 1024
Could someone help ?
Thanks
Keith