View Operation(s) in Progress> db.currentOp();
{ inprog: [ { "opid" : 18 , "op" : "query" , "ns" : "mydb.votes" ,
"query" : "{ score : 1.0 }" , "inLock" : 1 }
]
}
>
> // to include idle connections in report:
> db.currentOp(true);
Fields:
From a driver one runs currentOp by executing the equivalent of: db.$cmd.sys.inprog.find() Killing an In Progress Operationv1.4+ > db.killOp(1234/*opid*/)
> // same as: db.$cmd.sys.killop.findOne({op:1234})
Sharded DatabasesIn a sharded environment, operations named "writebacklistener" will appear. These are long-lived socket connections between mongos and mongod. These can be ignored. See Sharding FAQ. See Also |

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus