[SERVER-49216] rlimit warning does not say which setting it refers to Created: 30/Jun/20  Updated: 29/Oct/23  Resolved: 14/Jul/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.0-rc10
Fix Version/s: 4.7.0

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Adam Cooper (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2020-07-27
Participants:

 Description   

When I run `mongo` shell I get the following output:

serene% mongo --port 14420                                                                 
MongoDB shell version v4.4.0-rc10
connecting to: mongodb://127.0.0.1:14420/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("11903d9e-d115-4135-bdc8-258d83dab610") }
MongoDB server version: 4.4.0-rc10
---
The server generated these startup warnings when booting: 
        2020-06-23T04:47:32.625-04:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
        2020-06-23T04:47:32.625-04:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
        2020-06-23T04:47:32.625-04:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
        2020-06-23T04:47:32.625-04:00: Soft rlimits too low
        2020-06-23T04:47:32.625-04:00:         currentValue: 2000
        2020-06-23T04:47:32.625-04:00:         recommendedMinimum: 64000
---

The last 3 lines are saying some value is set to 2000 and the recommended setting is 64000, but do not say what setting the numbers are referring to.

I believe the message is referring to the number of open file descriptors allowed (ulimit -n).



 Comments   
Comment by Githook User [ 14/Jul/20 ]

Author:

{'name': 'Adam Cooper', 'email': 'adam.cooper@mongodb.com', 'username': 'super-cooper'}

Message: SERVER-49216 rlimit warning does not say which setting it refers to
Branch: master
https://github.com/mongodb/mongo/commit/12a8c37e8ff987be7c263727257f67e51f6563f2

Generated at Thu Feb 08 05:19:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.