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

Startup hangs infinitely, DataFileSync background job cannot create new thread

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Concurrency
    • None
    • Environment:
      Red Hat Enterprise Linux Server release 6.2 (Santiago)
      Linux vm210-171 2.6.32-220.17.1.el6.x86_64 #1 SMP Thu Apr 26 13:37:13 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
    • Linux

      Please see https://jira.mongodb.org/browse/SERVER-7434, I don't know how to modify the Priority, so open this one. This issue impacted me a lot.

      I meet the same issue when using python script to start mongodb.
      From the ps, there are three processes and hang. Strace the last process, the result as below. This not happen every time, but random.
      Any suggestion how to avoid this issue? Thanks!
      -bash-4.1# ps -ef|grep mongo
      root 9778 9671 0 00:45 pts/0 00:00:00 grep mongo
      root 30444 30426 0 Jan19 ? 00:00:00 /opt/mongodb/mongodb-linux-x86_64-2.2.0/bin/mongod --fork --port 27018 --dbpath /opt/mongodb/data --logpath /opt/mongodb/logs/mongod.log --logappend --auth
      root 30446 30444 0 Jan19 ? 00:00:00 /opt/mongodb/mongodb-linux-x86_64-2.2.0/bin/mongod --fork --port 27018 --dbpath /opt/mongodb/data --logpath /opt/mongodb/logs/mongod.log --logappend --auth
      root 30447 30446 0 Jan19 ? 00:00:03 /opt/mongodb/mongodb-linux-x86_64-2.2.0/bin/mongod --fork --port 27018 --dbpath /opt/mongodb/data --logpath /opt/mongodb/logs/mongod.log --logappend --auth
      -bash-4.1# strace -p 30447
      Process 30447 attached - interrupt to quit
      restart_syscall(<... resuming interrupted call ...>) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 62268768}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 263559680}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 126873152}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 243237408}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 86392656}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 167695552}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 177540480}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 218584944}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 73609392}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 108531680}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 66404528}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 94315584}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 18061952}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 36596160}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 110801056}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 16613728}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 47067712}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 145683984}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 256660144}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 164049408}

      ) = -1 ETIMEDOUT (Connection timed out)
      futex(0x13dc400, FUTEX_WAIT_PRIVATE, 2,

      {0, 209718064}

      ^C <unfinished ...>
      Process 30447 detached

            Assignee:
            Unassigned Unassigned
            Reporter:
            wangyuontheway WangYu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: