db.runCommand({serverStatus:1}).connections
{
current: 9,
available: 195,
totalCreated: 3833,
active: 3,
threaded: 9,
exhaustIsMaster: 0,
exhaustHello: 2,
awaitingTopologyChanges: 2
}
参数 | 释义 |
---|---|
current | 表示当前打开的连接数 |
available | 表示还可以创建的连接数 |
totalCreated | 表示自数据库启动以来创建的总连接数 |
active | |
threaded | |
exhaustIsMaster | |
exhaustHello | |
awaitingTopologyChanges |