Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49216

rlimit warning does not say which setting it refers to

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: 4.4.0-rc10
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2020-07-27

      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).

            Assignee:
            adam.cooper@mongodb.com Adam Cooper (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: