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

Mongod hangs on shutdown and RAM usage reaches upto 98%

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.2
    • Component/s: None
    • None
    • Environment:
      Production

      Problem Statement/Rationale

      On trying to stop the mongod process using the command - sudo systemctl stop mongod, the process got stuck. And the RAM usage started increasing and reached upto 98%. After the systemd timeout, mongod process was killed.  We saw below log for this
      State 'stop-sigterm' timed out. Killing.
      In the logs, we also saw, mongod was trying to close connections but it got stuck there as well.

      This issue happened on all instances of the replicaset. We tried increasing the systemd timeout to upto 15 min, still the sudo systemctl stop mongod was stuck for 15 mins

      After the mongod process was killed, we started it again. It started successfully

       

            Assignee:
            edwin.zhou@mongodb.com Edwin Zhou
            Reporter:
            ishrat.jahan@gojek.com Ishrat Jahan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: