1

I need to write a shell script that finds and kills long running mongodb queries, but I don't have access to the database that runs slow queries, how to I simulate running slow queries on my local machine running mongodb v3.6.8, so that I get some relevant output from db.currentOp() for now doesn't return much, also any tips are welcomed for the script as well.

DB guy
  • 69
  • 3
  • 8

0 Answers0