Info
We're commonly running into this warning in environments we feel are properly configured. It's a warning, not an error, but it's still creating friction through confusion among the user base, so it would be nice to address.
WARNING: soft rlimits too low. rlimits set to XXX processes, YYY files. Number of processes should be at least YYY/2 : 0.5 times number of files.
The issue is that WiredTiger now uses a file descriptor per namespace, meaning the number of file descriptors required can quickly outstrip the number of connections used in heavily multi-tenanted environments (commonly development and test) where connection requirements are modest but namespaces abound.
You can see a more detailed discussion from the mongodb-user group:
https://groups.google.com/d/topic/mongodb-user/aUrWTZxUUi4/discussion
Top User Comments
xgen-internal-githook commented on Wed, 21 Aug 2019 13:25:08 +0000:
Author:
{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}
Message: 0.5 nFiles fails for non-trivial, valid WiredTiger configurations" class="issue-link" data-issue-key="SERVER-25985">SERVER-25985 Remove rlimit check for nProcesses and nFiles during startup
Branch: master
https://github.com/mongodb/mongo/commit/f5ee95fe7e9e6ca3db9db01e97a917f754d4d8cd
thomas.schubert commented on Fri, 9 Sep 2016 20:20:53 +0000:
Hi jared,
Thank you for reporting this behavior - I'm marking this ticket to indicate that it needs to be scheduled. Please continue to watch for updates.
Kind regards,
Thomas