Docs Home / Compass / Interact with Your Data

View Real-Time Performance查看实时性能

To access the real-time server performance view, click the next to the connection name in the Connections Sidebar and select the Performance menu option.要访问实时服务器性能视图,请单击“连接”侧边栏中连接名称旁边的省略号,然后选择“性能”菜单选项。

Limitations局限性

  • MongoDB Compass cannot retrieve performance data for collections that use Queryable Encryption.MongoDB Compass无法检索使用可查询加密的集合的性能数据。
  • MongoDB Compass shows limited performance data when connected to a mongos.MongoDB Compass在连接到mongos时显示有限的性能数据。

Server Stats服务器统计信息

The Performance tab displays various stats:“性能”选项卡显示各种统计数据:

Performance statistics example
Chart/Table图表/表格Description描述
Operations(操作)Displays the number of operations as reported by mongostat. 显示mongostat报告的操作数。For a description of the fields, see mongostat.有关字段的描述,请参阅mongostat
Read & Write(读和写)Displays the number of active reads, queued reads, active writes, queued writes as reported by mongostat. For a description of the fields, see mongostat.显示mongostat报告的活动读取、排队读取、活动写入、排队写入的数量。有关字段的描述,请参阅mongostat
Network(网络)Displays the number of connections as reported by mongostat. For a description of the fields, see mongostat.显示mongostat报告的连接数。有关字段的描述,请参阅mongostat
Memory(内存)Displays the memory stats as reported by mongostat. For a description of the fields, see mongostat.显示mongostat报告的内存统计信息。有关字段的描述,请参阅mongostat
Hottest Collections(最热集合)

Displays the collections with the most activities as reported by mongotop.显示mongotop报告的活动最多的集合。

The collections correspond to a given moment in the charts; i.e. as you move over the charts, the corresponding collections are highlighted/displayed in the table.这些集合对应于图表中的给定时刻;即,当您在图表上移动时,相应的集合将在表中突出显示。

Slowest Operations(慢操作)Displays the slowest operations as reported by db.currentOp(). The operations correspond to a given moment in the charts; i.e. as you move over the charts, the corresponding slowest operations are displayed in the table. 显示db.currentOp()报告的最慢操作。这些操作对应于图表中的给定时刻;即,当您在图表上移动时,表中会显示相应的最慢操作。To view the details of a slow operation or stop the operation, click on the operation.要查看慢速操作的详细信息或停止操作,请单击该操作。

Stop Slow Operations停止慢速操作

You can stop slow operations from the Performance Tab.您可以从“性能”选项卡停止慢速操作。

Important

Required Permissions必需的权限

On deployments that require authentication, to stop operations that you don't own, you must have the killop privilege action.在需要身份验证的部署中,要停止您不拥有的操作,您必须具有killop权限操作。

1

Click the query you want to stop in the Slowest Operations section.在“最慢操作”部分中单击要停止的查询。

2

In the Operation Details view, click Kill Op.在“操作详细信息”视图中,单击“终止操作”。

Pause the Display暂停显示

The Pause button above the graph display pauses the update of the displays only. Pausing the performance tab does not impact the collection of the underlying data. To restart the display updates, click Play.图形显示上方的“暂停”按钮仅暂停显示的更新。暂停性能选项卡不会影响基础数据的集合。要重新启动显示更新,请单击“播放”。

Next to the Pause button is a clock which shows the current time while the graphs are updating. If the display is paused, the clock shows the time at which the pause began.暂停按钮旁边是一个时钟,在图形更新时显示当前时间。如果显示暂停,时钟将显示暂停开始的时间。