Last active
May 4, 2016 04:30
-
-
Save chrisckchang/8788594 to your computer and use it in GitHub Desktop.
Command for getting current operations on a MongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.currentOp().inprog.forEach( | |
function(op) { | |
if(op.secs_running > 5) printjson(op); | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One-liners:
Thanks for the article!