Print all active messages:
db.currentOp().inprog.forEach( function(d){ if(d.waitingForLock && d.lockType != "read") printjson(d) })
Print all active entries:
db.currentOp().inprog.forEach( function(d){ if(d.waitingForLock && d.lockType != "write") printjson(d) })
You can get much more detailed if you want, using currentOp.op to filter by a specific type of operation (insert, update, delete, etc.).
For more information, see the following MongoDB.org documentation page: http://docs.mongodb.org/manual/reference/current-op/
source share