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

Mongod give error "too many opens file"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Works as Designed
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Environment:
      linux OEL
    • Operating System:
      Linux

      Description

      hi,

      We have following setup:
      mongos :1
      config server :3
      mongod (shards):10

      all shards are journal enabled.

      Mongod1 become non-responsive. Logs show error "too many opens files".
      At same time mongos also become non-responsive. The resident memory utilization of mongod1 was 5.5GB.

      Below are the logs of that time:
      Wed Aug 8 15:10:15 [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
      Wed Aug 8 15:10:15 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.
      Wed Aug 8 15:10:16 [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
      Wed Aug 8 15:10:16 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.
      Wed Aug 8 15:10:17 [initandlisten] Listener: accept() returns -1 errno:24 Too many open files
      Wed Aug 8 15:10:17 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections.
      Wed Aug 8 15:10:18 [initandlisten] Listener: accept() returns -1 errno:24 Too many open files

      Wed Aug 8 15:19:10 [conn11] Accessing: 00070613 for the first time
      Wed Aug 8 15:19:10 [conn11] couldn't open /u01/shard1/00070613.0 errno:24 Too many open files
      Wed Aug 8 15:19:10 [conn11] User Assertion: 10085:can't map file memory
      Wed Aug 8 15:19:10 [conn8] Accessing: 00070613 for the first time
      Wed Aug 8 15:19:10 [conn11] command admin.$cmd command:

      { listDatabases: 1.0 }

      ntoreturn:1 exception: can't map file memory code:10085 reslen:126 138744ms
      Wed Aug 8 15:19:10 [conn11] Socket recv() conn closed? 192.168.11.103:33821
      Wed Aug 8 15:19:10 [conn11] SocketException: remote: 192.168.11.103:33821 error: 9001 socket exception [0] server [192.168.11.103:33821]
      Wed Aug 8 15:19:10 [conn8] couldn't open /u01/shard1/00070613.1 errno:24 Too many open files
      Wed Aug 8 15:19:10 [conn8] User Assertion: 10085:can't map file memory
      Wed Aug 8 15:19:10 [conn8] command admin.$cmd command:

      { listDatabases: 1 }

      ntoreturn:1 exception: can't map file memory code:10085 reslen:126 159834ms
      Wed Aug 8 15:19:10 [conn8] Socket recv() conn closed? 192.168.11.103:33434

      Please let us know of any solution.

      Thanks,
      Jitendra Verma

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              barrie Barrie Segal
              Reporter:
              jitendra908 jitendra
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: