[SERVER-64981] Mongod hangs on shutdown and RAM usage reaches upto 98% Created: 23/Mar/22  Updated: 29/Mar/22  Resolved: 29/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ishrat Jahan Assignee: Edwin Zhou
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Production


Issue Links:
Duplicate
duplicates SERVER-64814 Mongod hangs on shutdown and RAM usag... Closed
Participants:

 Description   

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

 



 Comments   
Comment by Edwin Zhou [ 29/Mar/22 ]

Hi ishrat.jahan@gojek.com, I am closing this ticket as it appears to duplicate your previous submission SERVER-64814.

Comment by Tim Fogarty [ 28/Mar/22 ]

Hi, this Jira project is only for tracking development and bugfixes for the MongoDB Database Tools (mongoimport, mongodump, etc.). So this isn't the best place to get an answer to your question. I'm going to move this ticket to the SERVER project since this is related to mongod.

Generated at Thu Feb 08 06:01:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.