On a mac high sierra 10.13.3 I have 256 open files.
I want to raise it and I open a terminal and enter

sudo launchctl limit maxfiles 1000000 1000000

This doesnt change anything when I enter

ulimit -a 

I still get 256

But it does change something, because when I enter

sudo launchctl limit maxfiles 1000 1000

the system just stops working until a restart.

What is the right way to Increase number of open files in mac high sierra

Following command changes the open files just for the specific terminal session

ulimit -n 4096


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.