A warning appears after MONGODB installation: * * Warning:soft rlimits too low. Number of files is a, should be at least 1000

Source: Internet
Author: User

Warning Issue: The maximum number of files currently supported by MongoDB is 256, but at least 1024 is recommended.

Workaround:

1. Close the MongoDB terminal window now open

2. Re-open the terminal and run the command:

sudo launchctl limit maxfiles 65536 65536

sudo launchctl limit maxproc 2048 2048

Ulimit-n 65536
Ulimit-u 2048

3. Restart the terminal

4. Type the command: Ulimit-n test is set successfully

  

A warning appears after MONGODB installation: * * Warning:soft rlimits too low. Number of files is a, should be at least 1000

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.