Sign up ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is there any way we can figure out what all indexes are cached into RAM ? I want to know page related stats for individual indexes (# of hits and miss )

share|improve this question

1 Answer 1

You can get overall (instance wide) hit info from the db.serverStatus() command, and in particular:

These numbers are totals seen for the lifetime of the process, so if you want to get a rate or see the trend over time, then you will need to record them periodically and diff the values accordingly. Thankfully, if you install MMS Monitoring, it will do that for you and graph the results.

However, there are currently no per-index statistics available. The relevant feature request can be found here for tracking and voting purposes:

Update: September 2015

The stats referenced above have been removed from the output of the server status command, so are no longer available. However, the referenced feature request is now complete and will be available in version 3.2 when released. There will be an $indexStats aggregation source at that point, but as of writing this update, the feature is not yet documented.

share|improve this answer
from the docs: "Changed in version 3.0: The server status output no longer includes the workingSet, indexCounters, and recordStats sections." Any other ideas? –  user Sep 18 at 9:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.