Open File Limits on Mac OS X (Yosemite)
Posted November 24th, 2014 @ 03:28pm by Erik J. Barzeski
Twice over the past three months I've awoken to find that my computer had set opened too many files. One time it essentially corrupted my Mail (I had to "restore" old accounts from Time Machine because Mail had lost track of all the accounts - the emails themselves were still there, of course), and the other time only minor things happened, but who knows if I caught them all?
Some resources:
- Open Files Limit
- Yosemite Upgrade Changes Open File Limit | Yabfog
- ulimit - Open files limit does not work as before in OSX Yosemite - Super User
- osx - OS X Yosemite - Too many files open - Super User
I believe I've bumped the open file limit successfully. It seems pretty low, particularly considering:
[12:33pm iacas@Bunny:~] % ofc Safari 3920
ofc?
alias ofc 'lsof | grep \!:1 | wc -l'
That's with six Safari tabs open currently, and Safari having gone about 12 hours since last being quit and re-launched.
Safari is, by far, the worst abuser of open files.