Skip to content

Add in progress operation metrics #1

@flaviostutz

Description

@flaviostutz

db.currentOp().inprog.length

SHOW LONG RUNNING

db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)

SHOW CURRENT LOCKS

db.currentOp(
{
$and: [
{"waitingForLock" : true},
{"ns" : "edidatico.testes-estudantes"}
]
}
)

db.currentOp(
{
$and: [
{"waitingForLock" : true},
{"ns" : "edidatico.testes-cadastro"}
]
}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions