Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongodb performance monitoring

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Use / var/soft/mongodb2.2/bin/mongostat-- port port number

Can be monitored in real time

Inserts/s inserts per second

Number of queries per second by query/s

Update/s updates per second

Number of delete/s deletions per second

Getmore/s executes getmore per second

Command/s has more commands per second than the above inserts, searches, updates and deletions, and counts other commands.

The number of times per second that flushs/s executes fsync to write data to the hard disk.

The amount of data that is mmap in mapped/s, in MB.

Vsize virtual memory usage (in MB)

Res physical memory usage (in MB)

The number of faults/s access failures per second (only Linux has), and the data is swapped out of physical memory and put into swap. Do not exceed 100. otherwise, the machine memory is too small, resulting in frequent swap writes. At this point, you need to upgrade memory or expand

The percentage of time locked% is locked up, try to keep it below 50%.

Percentage of idx miss% index misses. If it is too high, consider whether there is a lack of indexes.

Q t | r | w when Mongodb receives too many commands and the database is locked and cannot be executed, it will queue the commands. This column shows the total length of three queues, read and write, and a value of 0 indicates that the mongo is under no pressure. When there is high concurrency, the general queue value will rise.

Current number of connections to conn

Time timestamp

These states basically do not need to look at the conn, generally will not change, because the number of connections from the connection pool is fixed. Basically, take a look at qr | qw, ar | aw. If 0 means it is healthy, if it is tens, it means that mongo is very slow to process, and there may be slow queries, table locking and queuing, and so on.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report