Mac OSX 10.8.6: maxfiles settings

Hi there!

In the last few days I’ve been working on a new project. Testing the application I’ve come across the “Too many open files” error.

My OSX 10.8.6 has the maxfiles limit set to 256. That’s ok for daily activities but it is not when working on big projects.

Googling the error I’ve found a lot of people speaking about it and giving their right solution. It is always the same:

  1. create or edit the file “/etc/launchd.conf”
  2. write in it the following: limit maxfiles 20000 50000
  3. save and reboot

This configuration is ok, but it wasn’t working on my machine. The one more thing I needed to do was setting the right permission to the file ­čÖé

So, to sum up:

  1. create or edit the file “/etc/launchd.conf”
  2. write in it the following: limit maxfiles 20000 50000
  3. save and reboot
  4. run the command: sudo chmod 775 /etc/launchd.conf

Hope it helps!