[Go] "Warning:soft rlimits too Low" in MongoDB with Mac OS X

Source: Internet
Author: User
Tags mongo shell

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.