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

Cannot start mongod when opening too many files before getting a socket

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: 2.7.6
    • Component/s: Storage
    • Labels:
      None
    • ALL

      Looks like 2.7 regression of SERVER-9818 - we now open all of the DB files in STORAGE and INDEXING components before getting low numbered socket.

      2014-09-24T23:45:43.407+0000 D NETWORK  [initandlisten] fd limit hard:20000 soft:20000 max conn: 16000
      2014-09-24T23:45:43.407+0000 D COMMANDS [initandlisten] run command local.$cmd { create: "startup_log", size: 10485760, capped: true }
      2014-09-24T23:45:43.407+0000 D STORAGE  [initandlisten] create collection local.startup_log { size: 10485760, capped: true }
      2014-09-24T23:45:43.407+0000 I QUERY    [initandlisten] command local.$cmd command: create { create: "startup_log", size: 10485760, capped: true } ntoreturn:1 keyUpdates:0 numYields:0  reslen:85 0ms
      2014-09-24T23:45:43.407+0000 I QUERY    [initandlisten] insert local.startup_log ninserted:1 keyUpdates:0 numYields:0  0ms
      2014-09-24T23:45:43.407+0000 E NETWORK  [initandlisten] socket 1401 is higher than 1023; not supported
      2014-09-24T23:45:43.407+0000 I COMMANDS [initandlisten] now exiting
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] closing listening socket: 1400
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] closing listening socket: 1401
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
      2014-09-24T23:45:43.407+0000 I NETWORK  [initandlisten] shutdown: going to close sockets...
      2014-09-24T23:45:43.407+0000 I STORAGE  [initandlisten] shutdown: waiting for fs preallocator...
      2014-09-24T23:45:43.407+0000 I STORAGE  [initandlisten] shutdown: final commit...
      2014-09-24T23:45:43.407+0000 D JOURNAL  [initandlisten] _groupCommit
      ...
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: