我在mongod进程中看到的最后一个日志是:
[conn5] end connection 127.0.0.1:62206 (4 connections now open)
当我打电话给mongo stat时,我得到:
insert query update delete getmore command flushes mapped vsize res faults qr|qw ar|aw netIn netOut conn time
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:20
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:21
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:22
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:23
*0 *0 *0 *0 0 2|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 133b 10k 1 23:52:24
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:25
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:26
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:27
*0 *0 *0 *0 0 1|0 0 160.0M 475.0M 74.0M 0 0|0 0|0 79b 10k 1 23:52:28
.... (omitted)
据我了解,根据mongostat
,我只有一个连接。
修改
我调查了db.serverStatus().connection
,这很酷,但所有细节都不多......
/* 0 */
{
"current" : 5,
"available" : 999995,
"totalCreated" : NumberLong(11)
}
如何获得有关此连接的更多信息? 感谢