Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs 菜单
Docs 主页
/ /
旧版 shell 中的原生方法

getMemInfo()

注意

此处列出的原生方法适用于旧版 mongo shell 。

要使用mongosh 中的原生方法,请参阅 mongosh中的原生方法。

getMemInfo()

返回一个包含两个字段的文档,这两个字段报告 JavaScript shell 进程使用的内存量。返回的字段为常驻字段和虚拟字段。

后退

getHostName()