“WARNING: soft rlimits too low” in MongoDB with Mac OS X

If you get this warning when you connect to mongo shell in Mac OX X:

** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000

You can increase that limit by just running this on the Mac OS X shell:

launchctl limit maxfiles 1024 1024

This other command has the same effect but it will only last until the next system reboot:

ulimit -n 1024

Restart mongod and it shouldn’t complain any more.

You might also like

Fix locale problems in Raspbian
If you get errros like this while running commands on your Raspbian: perl: warning: Setting locale...
Install MongoDB in Ubuntu 12.04 with PHP driver
Install MongoDB: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo...
Install and configure MongoDB and PHP driver with MacPorts
Installing and configuring MongoDB with MacPorts Installing MongoDB with MacPorts is as easy as...
Solve “The Alias directive in … will probably never match because ir overlaps an earlier Alias”
This is a warning that happens when starting Apache2. $ sudo service apache2 restart * Restarting...
Leave a comment ?


Leave a Comment