calculate % index in memory and %data in memory per shard

17 views
Skip to first unread message

Alexander

unread,
Jun 13, 2017, 4:55:21 AM6/13/17
to mongodb-user
HI.

I want to calculate what part of collection data currently load into memory and what part of index currently loaded into memory.
Which parameters for collection size and index from the output db.coll.stats() are responsible for the amount of data loaded into memory at the moment? The total size of index and data on the shard I see.

http://www.paste.org/84654

Thank you.

Kevin Adistambha

unread,
Jun 23, 2017, 12:53:44 AM6/23/17
to mongodb-user

Hi Alexander,

There is currently no statistics that keeps track the amount of index and data in memory. The server status output section for WiredTiger shows internal counters and metrics for diagnostic purposes, but not current memory utilization.

You might want to take a look at mongostat instead, which is a built-in monitoring tool for MongoDB, which will show the WiredTiger cache utilization numbers (but doesn’t differentiate between data or indexes).

Best regards,
Kevin

Reply all
Reply to author
Forward
0 new messages