需要登录到具体的主/从节点查询,mongos查询不到

db.serverStatus()

其中有这个
"storageEngine" : {  "name" : "wiredTiger",  "supportsCommittedReads" : true,  "readOnly" : false,  "persistent" : true },
 
查看WiredTiger内部缓存到底占用了多少内存的方式是,在mongo shell中之行以下命令
db.runCommand( { serverStatus: 1 } ).wiredTiger.cache["bytes currently in the cache"]
如果不想重启mongoDB,可以在线修改,如下
db.adminCommand({setParameter: 1, wiredTigerEngineRuntimeConfig: "cache_size=8G"})

相关文章:

  • 2022-01-02
  • 2022-12-23
  • 2021-11-16
  • 2022-01-29
  • 2021-06-28
  • 2021-09-11
猜你喜欢
  • 2022-01-24
  • 2021-12-26
  • 2021-12-01
  • 2021-08-28
  • 2021-10-26
相关资源
相似解决方案