Mongostatmongostat is a great utility which exposes many internal MongoDB metrics. For any MongoDB related issues it is a good start for the analysis of performance issues. Query ProfilerUse the Database Profiler to analyze slow queries. db.currentOp() is another way to get a snapshot of what is currently happening. Http ConsoleThe mongod process includes a simple diagnostic screen at http://localhost:28017/. See the Http Interface docs for more information. mongo Shell Diagnostic Commands
Trending/Monitoring Adaptors
Chris Lea from (mt) Media Temple has made an easy to install Ubuntu package for the munin plugin. Hosted Monitoring
Database Record/Replay (diagLogging command)Recording database operations, and replaying them later, is sometimes a good way to reproduce certain problems in a controlled environment. To enable logging: db._adminCommand( { diagLogging : 1 } )
To disable: db._adminCommand( { diagLogging : 0 } )
Values for diagLogging:
Output is written to diaglog.bin_ in the /data/db/ directory (unless --dbpath is specified). To replay the logged events: nc ''database_server_ip'' 27017 < ''somelog.bin'' | hexdump -c |

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus