I’ve suddenly found myself running out of fds, which brings things to a screeching halt. For future reference, here are some helpful things to remember.

Check the current settings with launchctl:

www.feorlen.org[feorlen]:/etc$ launchctl limit
cpu unlimited unlimited
filesize unlimited unlimited
data 6291456 unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 1000 2500
maxfiles 256 unlimited

change for this shell only:

www.feorlen.org[feorlen]:/etc$ launchctl limit maxfiles 1024 unlimited

Make systemwide changes in launchd.conf:

Leave a Reply