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

Mongod hangs on shutdown and RAM usage reaches upto 98%

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.2
    • Component/s: None
    • Labels:
    • ALL

      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

            dmitry.agranat@mongodb.com Dmitry Agranat
            ishrat.jahan@gojek.com Ishrat Jahan
            0 Vote for this issue
            5 Start watching this issue