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

Mongod give error "too many opens file"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.0.3
    • Component/s: Sharding
    • Labels:
      None
    • Environment:
      linux OEL
    • Linux

      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

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

              Created:
              Updated:
              Resolved: