This is an old revision of the document!
limit maxfiles 512 1000000
/etc/launchd.conf(if it doesn't exist then it needs to be created) and increases the limit to 512 files. This is a plain text file. It will be active after a reboot.