Performance Tools and Techniques / Tools for System Monitoring
Code Recap: Tools for System Monitoring
mongotop
The mongotop
command monitors the time MongoDB spends reading from and writing to collections within a database. It provides insight into collection-specific operations, which can be used to pinpoint resource bottlenecks and optimize read/write workloads.
mongotop
mongostat
The mongostat
command provides real-time statistics about the operations performed by MongoDB instances in a cluster. It shows metrics such as insert, query, update, delete, and command rates. Additionally, it logs system resource usage like memory (vsize
and res
), connection counts (conn
), network traffic (net_in
and net_out
), and replica set state (repl
). This command is primarily used to monitor database activity and diagnose potential performance issues.
mongostat
btop
The btop
tool provides an interactive and comprehensive view of system performance. It displays real-time information about CPU usage, memory, disk activity, network usage, and running processes in an easily navigable interface. With visual graphs and customizable settings, btop
helps users analyze system resource utilization, manage processes, and identify potential performance issues efficiently.
btop