Reputation: 101
i ran on Mac OSX capitan and everytime i run mongo shell, this warning will pop up. i tried:
sudo ulimit -n 1024
ulimit -n 1024
it still doesn't work. any ideas?
Upvotes: 9
Views: 12602
Reputation: 151
You should try to close your terminal and redo it. Or directly try it in your shell which runs mongodb.
Run the following bash code:
sudo launchctl limit maxfiles 65536 65536
sudo launchctl limit maxproc 2048 2048
ulimit -n 65536
ulimit -u 2048
Close the terminal or bash and restart.
ulimit -n
in terminal to test if change successfullyUpvotes: 13