Mongodb can see a large increase in memory consumption during shutdown. WT-6229 identified and addressed a large part of this problem, but also observed that even with the fix, mongod could increase in size from ~400MB to ~1GB at shutdown (when is sets the WT_CONN_LEAK_MEMORY flag).
We should continue investigating to understand if there is another leak, or (as in WT-6229) there are some pages that we are repeatedly evicting and rereading.
milkie provides a simple way to produce the growth-at-shutdown problem in BF-17346.
- is related to
-
WT-6229 Fix memory growth bug during MDB shutdown
- Closed
- related to
-
SERVER-53708 Excess memory usage during shutdown in durable history tests
- Closed