我为我的一些项目应用了appName,但在currentOp中,某些查询缺少它。大多数情况下它缺少计数查询。{"desc":"conn1786739","threadId":"140671499200256","connectionId":1786739,"client":"179.22.4.3:42354","active":true,"opid":-1076773120,"secs_running":6,"microsecs_running":NumberLong(6928801),"op":"command","ns":"dbname.members","query":{"cou
我似乎找不到使用Node.js中的mongodb模块检索有关数据库当前操作的信息的方法。我试过这个:mongodb=require'mongodb'server=newmongodb.Server'localhost',27017connector=newmongodb.Db'test',serverconnector.open(err,db)->ifnoterr?db.admin().command{currentOp:1},(err,doc)->ifnoterr?console.logdoc当然没有任何结果。有人指点一下吗? 最佳答案