[SERVER-40382] Add a serverStatus metric to report plan cache memory consumption Created: 29/Mar/19  Updated: 29/Oct/23  Resolved: 13/Aug/19

Status: Closed
Project: Core Server
Component/s: Diagnostics, Querying
Affects Version/s: None
Fix Version/s: 3.6.15, 4.0.13, 4.2.1, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: Arun Banala
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-34886 Plan cache size is bounded by number ... Backlog
is related to SERVER-40360 Process-global plan cache Backlog
is related to SERVER-40361 Reduce memory footprint of plan cache... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Query 2019-07-15, Query 2019-07-29, Query 2019-08-12, Query 2019-08-26
Participants:

 Description   

This would help users understand when increasing memory consumption is due to growing plan cache entries. Right now, users have no insight into what portion of heap memory outside the WiredTiger cache is being used for the plan cache.

This may be difficult to implement without SERVER-40360, which would change the architecture so that there is a single plan cache per mongod rather than a plan cache per collection.



 Comments   
Comment by Githook User [ 21/Oct/19 ]

Author:

{'name': 'Arun Banala', 'username': 'banarun', 'email': 'arun.banala@10gen.com'}

Message: SERVER-40382 Add a serverStatus metric to report plan cache memory consumption

(cherry picked from commit 5105fa2377d3e86b2011691d5acbd8c531113929)
(cherry picked from commit 5eeba7b2c9dda32a37c2c16ca14edd9a9099a996)
(cherry picked from commit 769589a9ad6b8e69ee092bf43b4c1629970adca5)
Branch: v3.6
https://github.com/mongodb/mongo/commit/c9363fa1d38deaf29dcd8daff40802988f3f24a8

Comment by Githook User [ 02/Oct/19 ]

Author:

{'name': 'Arun Banala', 'username': 'banarun', 'email': 'arun.banala@10gen.com'}

Message: SERVER-40382 Add a serverStatus metric to report plan cache memory consumption

(cherry picked from commit 5105fa2377d3e86b2011691d5acbd8c531113929)
(cherry picked from commit 5eeba7b2c9dda32a37c2c16ca14edd9a9099a996)
Branch: v4.0
https://github.com/mongodb/mongo/commit/bda366f0b0e432ca143bc41da54d8732bd8d03c0

Comment by Githook User [ 26/Aug/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-40382 Add a serverStatus metric to report plan cache memory consumption

(cherry picked from commit 5105fa2377d3e86b2011691d5acbd8c531113929)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5eeba7b2c9dda32a37c2c16ca14edd9a9099a996

Comment by Githook User [ 13/Aug/19 ]

Author:

{'name': 'Arun Banala', 'username': 'banarun', 'email': 'arun.banala@mongodb.com'}

Message: SERVER-40382 Add a serverStatus metric to report plan cache memory consumption
Branch: master
https://github.com/mongodb/mongo/commit/5105fa2377d3e86b2011691d5acbd8c531113929

Generated at Thu Feb 08 04:54:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.