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

os x - startup warning - maxproc - hard limit of 1024

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc0
    • Affects Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Darwin Rnz4c.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 i386
    • ALL

      This warning looks like an error. Why do you need the max processes so high?

      I cannot set the maxproc on OS X above 1024.

      sudo launchctl limit maxproc 1024
      

      If, I increase, it asserts:

      ulimit -u 1025
      ulimit: max user processes: cannot modify limit: Operation not permitted
      

      But this works:

      ulimit -u 1024
      

      The startup warning is:

          "startupWarnings": {
              "log": [
                  "Wed Jun 27 19:02:40 [initandlisten] ",
                  "Wed Jun 27 19:02:40 [initandlisten] ** NOTE: This is a development version (2.1.2) of MongoDB.",
                  "Wed Jun 27 19:02:40 [initandlisten] **       Not recommended for production.",
                  "Wed Jun 27 19:02:40 [initandlisten] ",
                  "Wed Jun 27 19:02:40 [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 1024 processes, 20000 files. Number of processes should be at least 0.5 times number of files.",
                  "Wed Jun 27 19:02:40 [initandlisten] "
              ],
              "ok": 1
          },
      

      I added this in /etc/sysctl.conf and rebooted but nada:

      kern.maxprocs=2048
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: