Same goes for FreeBSD. I've been using:
sysctl -w kern.maxfiles=5000 sysctl -w kern.maxfilesperproc=5000
on my FreeBSD box. I believe the default was 1024.