In the last episode (Jun 13), Opec Kemp (Ozlinx) said:
> Monty said:
> > No, you don't have to modify the MySQL source (MySQL allows you to
> > have up to 16384 connections). You may have to recompile your
> > FreeBSD kernel to support much more file descriptors. What is your
> > current file descriptor limit?
> Yeah, that what I thought too, however, I can't seems to find any
> info on increasing the file descriptor on FreeBSD ... maybe I will
> have to post to the mailing list.
To temporarily change the running kernel (will be reset on reboot):
sysctl -w kern.maxfiles=10000
sysctl -w kern.maxfilesperproc=10000
The equivalent kernel option is
MAXFILES defaults to (maxusers*16+20)*2, so if maxusers=100,
If you have a new enough /boot/loader, you might also be able to add
the following line to /boot/loader.conf instead of rebuilding a kernel:
Replace 100000 with whatever value you prefer, of course, and make sure
you do a "limit descriptors unlimited" (or whatever syntax your shell
uses), or edit /etc/login.conf and raise the "openfiles" limit there.