Skip to content

Instantly share code, notes, and snippets.

View andrewguy9's full-sized avatar

Andrew Thomson andrewguy9

  • Adobe
  • Moraga CA
View GitHub Profile
@andrewguy9
andrewguy9 / long_running.txt
Created August 14, 2013 22:02
Kill a mongodb long running qurey
Log onto bad mongo primary
Use mongotop to find bad database
Run this to find long running queries
db.currentOp()['inprog'].filter(function (t){return t.secs_running > 10}).map(function (t){return t.opid})
Kill bad ops with
db.killOp(<opid>)