[SERVER-42731] Mongod process memory usage is too high Created: 09/Aug/19  Updated: 06/Dec/22  Resolved: 09/Aug/19

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

Type: Bug Priority: Major - P3
Reporter: huang zhuxing Assignee: Backlog - Triage Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File tyddbs01sz.tgz     File tyddbs02sz.tgz     File tyddbs03sz.tgz    
Assigned Teams:
Server Triage
Operating System: ALL
Participants:

 Description   

一套复制集环境,数据量只有几百k,wt的配置是在9G左右(虚拟机的内存是16G),连接数平时也只有20~30个连接,最近发现上面的主节点的mongod的内存占用率比较高,当前一直占用在12G左右,进程的物理内存高水位去到13G。

Google Translate:

A set of replication set environment, the amount of data is only a few hundred k, the configuration of wt is around 9G (the memory of the virtual machine is 16G), and the number of connections is only 20~30 connections. Recently, the memory of the mongod of the master node above is found. The occupancy rate is relatively high, and it currently occupies about 12G. The physical memory of the process has a high water level to go to 13G.



 Comments   
Comment by Danny Hatcher (Inactive) [ 09/Aug/19 ]

Please note that the WiredTiger cache configuration simply bounds one aspect of MongoDB's memory usage. The mongod process will eventually grow to use all available memory on a server unless constrained at the OS-level via cgroups or similar.

The SERVER project is for bugs and feature suggestions for the MongoDB server. If you need assistance troubleshooting memory optimizations, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

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