How do you set the maxopenfiles limit in Yosemite?
I created a /etc/sysctl.conf file with the following contents:

kern.maxfiles=100000


If I run sysctl kern.maxfiles after restarting it does show the new value there.