Finding and (safely) kill long running MongoDB ops
Find Long Running Ops Kill Long Running Ops This script kills long running ops in MongoDB (taking seconds as an arg to define “long”) attempts to be a bit safer than killing all by excluding replication related operations and only targeting queries as opposed to commands etc.