Diagnostic and Debugging

1 minute read

Table Of Contents

Here are some notes and bullet-points about diagnostic and debugging. Note that this document is not comprehensive and will be updated on time to time.

db.serverStatus

Used to get the diagnostic information about server.

  • db.serverStatus().opcounters: Number of operations after the server has started. Read more.
  • db.serverStatus().connections: Number of active and allowed connections with server. Read More
  • db.currentOp(): List Current Operations running in server. Read More
    • Users with clusterMonitor can use currentOp.

Misc Points

  • Without mentioning --auth option in mongod we can not enforce the roles.
  • You can check which flags are used to start mongod using following command
    db.adminCommand(
    {
        getCmdLineOpts: 1
    }
    )
    

Course

- M-312     

Tags

- Diagnostic      - Debugging