Antonius Bloch
Antonius Bloch

Reputation: 2729

How do I get a count of current operations in MongoDB 3.2

I'd like to find the total number of current operations in MongoDB. Something like:

db.currentOp().count()

Upvotes: 3

Views: 2556

Answers (1)

Ori Dar
Ori Dar

Reputation: 19000

db.currentOp().inprog.length

The inprog is an array of current operations

Upvotes: 12

Related Questions