Transferred from: Programming and technology
If you get the warning when you connect to MONGO shell in Mac OX X:
* * Warning:soft rlimits too low. Number of files is a, should be at least 1000
A simple-to-be-setting the limit just before starting with this mongod
:
Ulimit-n 1024x768 && Mongod
Or this:
Launchctl Limit maxfiles 1024 1024
But if you're running MONGO in a development environment this shouldn ' t is a problem, you can just ignore it.
This was a temporary and not very pretty fix. To do this permanent the /etc/launchd.conf
file:
Launchctl Limit maxfiles 1024 1024
Now reboot to make changes effective.
You can see the actual values of the limits running this:
$ launchctl Limit maxfiles maxfiles 1024x768 1024
Remember to restart your process every time and any value to see mongod
if it works.
[Go] "Warning:soft rlimits too Low" in MongoDB with Mac OS X